Projet

Général

Profil

Statistiques
| Branche: | Tag: | Révision:

root / entrouvert / logging @ master

Nom Taille Révision Âge Auteur Commentaire
__init__.py 0 octets 26e35159 presque 11 ans Benjamin Dauvergne logging: add logging handler SysLogHandler - ...
decorators.py 1,41 ko 85fba042 presque 11 ans Benjamin Dauvergne logging: add a decorator to log timing of funct...
handlers.py 1,8 ko 06164659 presque 11 ans Benjamin Dauvergne logging: set default max_length for syslog line...

Dernières révisions

# Date Auteur Commentaire
85fba042 30 mai 2013 10:21 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 mai 2013 10:41 Benjamin Dauvergne

logging: set default max_length for syslog lines to 120

69c7c72d 28 mai 2013 09:14 Benjamin Dauvergne

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

c5e20b7c 28 mai 2013 09:03 Benjamin Dauvergne

logging: make maximum line length configurable

eaff3538 21 mai 2013 18:15 Benjamin Dauvergne

logging: remove BOM addition to log messages

26e35159 16 mai 2013 17:55 Benjamin Dauvergne

logging: add logging handler SysLogHandler

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

Voir les révisions

Formats disponibles : Atom