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 | |
---|---|
FluLogObserver |
Twisted log observer that integrates with Flumotion's logging. |
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. | |
| |
getExceptionMessage(exception)
| |
getFailureMessage(failure)
| |
Return the name of a log level. | |
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. | |
Scrub the filename of everything before 'flumotion' and'twisted' to make them shorter. | |
Set the FLU_DEBUG string. | |
A log handler that writes to stdout. | |
warning(cat,
*args)
| |
warningFailure(failure)
| |
Log a warning message in the given category. |
Variable Summary | |
---|---|
int |
DEBUG = 4 |
int |
ERROR = 1 |
int |
INFO = 3 |
int |
LOG = 5 |
int |
WARN = 2 |
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 .
|
getCategoryLevel(category)
|
getLevelName(level)Return the name of a log level. |
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. |
scrubFilename(filename)Scrub the filename of everything before 'flumotion' and'twisted' to make them shorter. |
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. |
Variable Details |
---|
DEBUG
|
ERROR
|
INFO
|
LOG
|
WARN
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 | http://epydoc.sf.net |