Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

root / entrouvert / logging @ 73b85f5d

Name Size Revision Age Author Comment
__init__.py 0 Bytes 26e35159 over 11 years Benjamin Dauvergne logging: add logging handler SysLogHandler - ...
decorators.py 1.41 KB 85fba042 over 11 years Benjamin Dauvergne logging: add a decorator to log timing of funct...
handlers.py 1.8 KB 06164659 over 11 years Benjamin Dauvergne logging: set default max_length for syslog line...

Latest revisions

# Date Author Comment
85fba042 30 May 2013 10:21 AM Benjamin Dauvergne

logging: add a decorator to log timing of functions or methods

Use it like that:

from entrouvert.logging.decorators import timing
@timing(0, 1, logger='timing')
def method(arg0, arg1):
etc...
return arg0
It will output lines to the logger named 'timing' at the DEBUG level::...
06164659 28 May 2013 10:41 AM Benjamin Dauvergne

logging: set default max_length for syslog lines to 120

69c7c72d 28 May 2013 09:14 AM Benjamin Dauvergne

logging: handlers are old style class, super does not work there

c5e20b7c 28 May 2013 09:03 AM Benjamin Dauvergne

logging: make maximum line length configurable

eaff3538 21 May 2013 06:15 PM Benjamin Dauvergne

logging: remove BOM addition to log messages

26e35159 16 May 2013 05:55 PM Benjamin Dauvergne

logging: add logging handler SysLogHandler

- it properly handle unicode,
- it wraps long content as multiple log lines.

View revisions

Also available in: Atom