Home | Trees | Indices | Help |
---|
|
Logging module.
Five levels of log information are defined. These are, in order of decreasing verbosity: log, debug, info, warning, error.
This module provides a Loggable class for objects, as well as various convenience methods for logging in general, and for logging with Twisted and failures in particular.
Maintainer: Thomas Vander Stichele
|
|||
Loggable Base class for objects that want to be able to log messages with different level of severity. |
|||
TwistedLogObserver Twisted log observer that integrates with our logging. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple of (str, int) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
str |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_DEBUG =
|
|||
_ENV_VAR_NAME =
|
|||
_PACKAGE_SCRUB_LIST =
|
|||
_categories =
|
|||
_log_handlers =
|
|||
_log_handlers_limited =
|
|||
_initialized = True
|
|||
_stdout =
|
|||
_stderr =
|
|||
_old_hup_handler =
|
|||
COLORS =
|
|||
_FORMATTED_LEVELS =
|
|||
_initializedTwisted = True
|
|||
__theTwistedLogObserver =
|
|||
DEBUG = 4
|
|||
ERROR = 1
|
|||
INFO = 3
|
|||
LOG = 5
|
|||
WARN = 2
|
|
|
|
|
|
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.
|
|
|
SystemExit .
|
|
|
|
|
|
|
|
|
|
|
|
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. |
twisted.python.failure.Failure . Tries to find where
the exception was triggered.
|
|
Integrate twisted's logger with our 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. |
|
COLORS
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:08:31 2008 | http://epydoc.sourceforge.net |