Home | Trees | Indices | Help |
|
---|
|
object --+ | _BaseErrorLog --+ | PyErrorLog
A global error log that connects to the Python stdlib logging package.
The constructor accepts an optional logger name.
If you want to change the mapping between libxml2's ErrorLevels and Python logging levels, you can modify the level_map dictionary from a subclass.
The default mapping is:ErrorLevels.WARNING = logging.WARNING ErrorLevels.ERROR = logging.ERROR ErrorLevels.FATAL = logging.CRITICALYou can also override the method ``receive()`` that takes a LogEntry object and calls ``self.log(log_entry, format_string, arg1, arg2, ...)`` with appropriate data.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
level_map | |||
Inherited from Inherited from |
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sun Sep 16 00:12:46 2007 | http://epydoc.sourceforge.net |