| Home | Trees | Index | Help |
|---|
| Classes | |
|---|---|
Logger |
Derivated Logger class to make sure the correct file name is used instead of "log.py", which is the file actually calling the logger functions. |
| Function Summary | |
|---|---|
| bool |
Write a critical error message to the logger named after the calling module. |
| bool |
Write a critical error message to the logger defined through the name parameter. |
| bool |
Write a debug message to the logger named after the calling module. |
| bool |
Write a debug message to the logger defined through the name parameter. |
| bool |
Write a deprecation warning message to the logger named after the calling module. |
| function |
Decorator to mark a function as deprecated. |
| function |
Decorator to mark a function as deprecated using a specific logger. |
| bool |
Write a deprecation warning message to the logger defined through the name parameter. |
| bool |
Write an error message to the logger named after the calling module. |
| bool |
Write an error message to the logger defined through the name parameter. |
Exception hook to log an exception to the "exception" logger family. | |
| bool |
Log an exception to the logger named after the calling module. |
| bool |
Log an exception to the logger defined through the name
parameter. |
| bool |
Write an info message to the logger named after the calling module. |
| bool |
Write an info message to the logger defined through the name parameter. |
| function |
Decorator to activate logging for a function. |
| function |
Decorator to activate logging for a function using a specific logger. |
Write a debug message to the logger named after the calling module including information about the current call stack. | |
Write a debug message to the logger named after the calling module including information about the current call stack. | |
| bool |
Write a warning message to the logger named after the calling module. |
| bool |
Write a warning message to the logger defined through the name parameter. |
__caller()
| |
__deprecated(name,
func)
| |
__enter(name,
func)
| |
__func_name(func,
frame)
| |
__leave(name,
func,
result)
| |
| Variable Summary | |
|---|---|
list |
_CONFIG_FILES = []
|
| Function Details |
|---|
critical(msg, *args, **kwargs)Write a critical error message to the logger named after the calling module.
|
critical_n(name, msg, *args, **kwargs)Write a critical error message to the logger defined through thename parameter.
|
debug(msg, *args, **kwargs)Write a debug message to the logger named after the calling module.
|
debug_n(name, msg, *args, **kwargs)Write a debug message to the logger defined through thename parameter.
|
deprecated(msg, *args, **kwargs)Write a deprecation warning message to the logger named after the calling module.
|
deprecated_f(func)Decorator to mark a function as deprecated. If this decorator is applied to a function, every call to that function issues a deprecation warning. Usage with Python 2.4 or later:
@deprecated_f
myfunction(self, foo, bar):
:
Usage with Python 2.3:
myfunction(self, foo, bar):
:
myfunction=deprecated_f(myfunction)
|
deprecated_f_n(name)Decorator to mark a function as deprecated using a specific logger. If this decorator is applied to a function, every call to that function issues a deprecation warning. Usage with Python 2.4 or later:
@deprecated_f_n('my.logger.name')
myfunction(self, foo, bar):
:
Usage with Python 2.3:
myfunction(self, foo, bar):
:
myfunction=deprecated_f_n('my.logger.name')(myfunction)
|
deprecated_n(name, msg, *args, **kwargs)Write a deprecation warning message to the logger defined through thename parameter.
|
error(msg, *args, **kwargs)Write an error message to the logger named after the calling module.
|
error_n(name, msg, *args, **kwargs)Write an error message to the logger defined through thename parameter.
|
excepthook(etype, evalue, etraceback)Exception hook to log an exception to the "exception" logger family.
|
exception(msg, *args, **kwargs)Log an exception to the logger named after the calling module. This function can be used in a try...except block to log an exception before it is discarded.
|
exception_n(name, msg, *args, **kwargs)Log an exception to the logger defined through the
|
info(msg, *args, **kwargs)Write an info message to the logger named after the calling module.
|
info_n(name, msg, *args, **kwargs)Write an info message to the logger defined through thename parameter.
|
logged_f(func)Decorator to activate logging for a function. If this decorator is applied to a function, every call to that
function is logged on
@logged_f
myfunction(self, foo, bar):
:
Usage with Python 2.3:
myfunction(self, foo, bar):
:
myfunction=logged_f(myfunction)
|
logged_f_n(name)Decorator to activate logging for a function using a specific logger. If this decorator is applied to a function, every call to that
function is logged on
@logged_f_n('my.logger.name')
myfunction(self, foo, bar):
:
Usage with Python 2.3:
myfunction(self, foo, bar):
:
myfunction=logged_f_n('my.logger.name')(myfunction)
|
stack(msg, *args, **kwargs)Write a debug message to the logger named after the calling module including information about the current call stack. |
stack_n(name, msg, *args, **kwargs)Write a debug message to the logger named after the calling module including information about the current call stack. |
warning(msg, *args, **kwargs)Write a warning message to the logger named after the calling module.
|
warning_n(name, msg, *args, **kwargs)Write a warning message to the logger defined through thename parameter.
|
__caller() |
__deprecated(name, func) |
__enter(name, func) |
__func_name(func, frame) |
__leave(name, func, result) |
| Variable Details |
|---|
_CONFIG_FILES
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Dec 2 23:02:09 2008 | http://epydoc.sf.net |