[Pyxmlsec-devel] Error Trapping: Reposted

Valéry Febvre vfebvre at easter-eggs.com
Mon Jan 31 12:22:14 CET 2005

Edward Shallow wrote:
> Hello Valery,
>      Presently I have pyxmlsec running behind a Python Medusa HTTP 
> Server. All errors, when they occur, are going to STDERR. In order to 
> get access them I start the server as such:
> httpserver.py >& /var/www/error.log
> I then must flush STDERR and read the file backwards to pick up the errors.
> My question is can pyxmlsec wrap and support the xmlsec 
> xmlSecErrorsSetCallback or trap the errors some other way so I can get 
> at them with the API ?

Here is a simple example which explains how to use xmlSecErrorsSetCallback function.
I hope it will be helpfull.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_error_cb.py
Type: application/x-python
Size: 992 bytes
Desc: not available
Url : http://lists.labs.libre-entreprise.org/pipermail/pyxmlsec-devel/attachments/20050131/2523a465/test_error_cb.bin

More information about the Pyxmlsec-devel mailing list