Changeset - efc6a740bc86
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2014-01-21 18:46:11
dennis.fink@c3l.lu
more bytes for logs
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
ennstatus/log.py
Show inline comments
 
@@ -14,22 +14,22 @@ def init_logging(app):
 
    stream_handler = logging.StreamHandler()
 
    stream_handler.setLevel(logging.DEBUG)
 
    stream_handler.setFormatter(logging_debug_formatter)
 

	
 
    rotating_file_handler = logging.handlers.RotatingFileHandler(
 
        'log/ennstatus.log',
 
        maxBytes=130000,
 
        maxBytes=1300000,
 
        backupCount=10,
 
        encoding='utf-8')
 
    rotating_file_handler.setLevel(logging.INFO)
 
    rotating_file_handler.setFormatter(logging_formatter)
 

	
 
    if app.debug:
 
        second_rotating_file_handler = logging.handlers.RotatingFileHandler(
 
            'log/ennstatus_debug.log',
 
            maxBytes=130000,
 
            maxBytes=1300000,
 
            backupCount=20,
 
            encoding='utf-8')
 
        second_rotating_file_handler.setLevel(logging.DEBUG)
 
        second_rotating_file_handler.setFormatter(logging_debug_formatter)
 
        app.logger.addHandler(second_rotating_file_handler)
 

	
0 comments (0 inline, 0 general)