Trees | Indices | Help |
---|
|
Flumotion logging
Just like in GStreamer, five levels of log information are defined. These are, in order of decreasing verbosity: log, debug, info, warning, error.
API Stability: stabilizing
Maintainer: Thomas Vander Stichele
|
|||
Loggable Base class for objects that want to be able to log messages with different level of severity. |
|||
FluLogObserver Twisted log observer that integrates with Flumotion's logging. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple of (str, int) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Register a given category in the debug system. A level will be assigned to it based on the setting of FLU_DEBUG. |
|
Return the filename and line number for the given location. If where is a negative integer, look for the code entry in the current stack that is the given number of frames above this module. If where is a function, look for the code entry of the function.
|
Helper function to create a format and args to use for logging. This avoids needlessly interpolating variables. |
|
Log a fatal error message in the given category. This will also raise a flumotion.common.errors.SystemError. |
Log a warning message in the given category. This is used for non-fatal problems. |
Log a log message. Used for debugging recurring events. |
Log a warning about a Failure. Useful as an errback handler: d.addErrback(warningFailure)
|
A log handler that writes to stderr.
|
Add a custom log handler.
|
Initialize the logging system and parse the FLU_DEBUG environment variable. Needs to be called before starting the actual application. |
Redirect stdout and stderr to named files. Records the file names so that a future call to reopenOutputFiles() can open the same files. Installs a SIGHUP handler that will reopen the output files. Note that stderr is opened unbuffered, so if it shares a file with stdout then interleaved output may not appear in the order that you expect. |
Integrate twisted's logger with Flumotion's logger. This is done in a separate method because calling this imports and sets up a reactor. Since we want basic logging working before choosing a reactor, we need to separate these. |
Set the FLU_DEBUG string. This controls the log output. |
Return a short message based on an exception, useful for debugging. Tries to find where the exception was triggered. |
Return a short message based on |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 11 07:40:22 2008 | http://epydoc.sourceforge.net |