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::...
logging: set default max_length for syslog lines to 120
logging: handlers are old style class, super does not work there
logging: make maximum line length configurable
logging: remove BOM addition to log messages
logging: add logging handler SysLogHandler
- it properly handle unicode, - it wraps long content as multiple log lines.