| Branch: | Tag: | Revision:

root / entrouvert / logging @ master

# 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):
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.