Révision 06164659
Ajouté par Benjamin Dauvergne il y a presque 11 ans
entrouvert/logging/handlers.py | ||
---|---|---|
9 | 9 |
max_length = 120 |
10 | 10 |
|
11 | 11 |
def __init__(self, *args, **kwargs): |
12 |
self.max_length = kwargs.pop('max_length', 70)
|
|
12 |
self.max_length = kwargs.pop('max_length', self.max_length)
|
|
13 | 13 |
logging.handlers.SysLogHandler.__init__(self, *args, **kwargs) |
14 | 14 |
|
15 | 15 |
def emit(self, record): |
Formats disponibles : Unified diff
logging: set default max_length for syslog lines to 120