Trees | Index | Help |
---|
Package flumotion :: Package common :: Module log |
|
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 SticheleClasses | |
---|---|
Loggable |
Base class for objects that want to be able to log messages with different level of severity. |
Function Summary | |
---|---|
Add a custom log handler. | |
debug(cat,
*args)
| |
Log a debug message in the given category. | |
error(cat,
*args)
| |
Log a fatal error message in the given category. | |
Return a tuple of (file, line) for the first stack entry outside of log.py | |
info(cat,
*args)
| |
Log an informational message in the given category. | |
Initialize the logging system and parse the FLU_DEBUG environment variable. | |
log(cat,
*args)
| |
Log a log message. | |
Register a given category in the debug system. | |
Resets the logging system, removing all log handlers. | |
Set the FLU_DEBUG string. | |
A log handler that writes to stdout. | |
warning(cat,
*args)
| |
Log a warning message in the given category. |
Function Details |
---|
addLogHandler(func, limited=True)Add a custom log handler.
|
debugObject(object, cat, *args)Log a debug message in the given category. |
errorObject(object, cat, *args)Log a fatal error message in the given category. This will also raise aflumotion.common.errors.SystemError .
|
getFileLine()Return a tuple of (file, line) for the first stack entry outside of log.py |
infoObject(object, cat, *args)Log an informational message in the given category. |
init()Initialize the logging system and parse the FLU_DEBUG environment variable. Needs to be called before starting the actual application. |
logObject(object, cat, *args)Log a log message. Used for debugging recurring events. |
registerCategory(category)Register a given category in the debug system. A level will be assigned to it based on the setting of FLU_DEBUG. |
reset()Resets the logging system, removing all log handlers. |
setFluDebug(string)Set the FLU_DEBUG string. This controls the log output. |
stderrHandler(level, object, category, file, line, message)A log handler that writes to stdout.
|
warningObject(object, cat, *args)Log a warning message in the given category. This is used for non-fatal problems. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Feb 16 07:23:00 2005 | http://epydoc.sf.net |