Changeset - b22d2bbdd641
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2014-01-24 00:22:10
dennis.fink@c3l.lu
pep8
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/log.py
Show inline comments
 
import logging
 
import logging.handlers
 

	
 

	
 
logging_debug_string = "%(levelname)s:%(name)s:%(asctime)s:%(filename)s:%(lineno)d: %(message)s"
 
logging_debug_string = ("%(levelname)s:%(name)s:%(asctime)s:%(filename)s"
 
                        ":%(lineno)d: %(message)s")
 
logging_string = "%(levelname)s - %(name)s - %(asctime)s - %(message)s"
 
logging_debug_formatter = logging.Formatter(logging_debug_string)
 
logging_formatter = logging.Formatter(logging_string)
 

	
 

	
 
def init_logging(app):
 

	
 
    app.logger.setLevel(logging.DEBUG)
 
    stream_handler = logging.StreamHandler()
 
    stream_handler.setLevel(logging.DEBUG)
 
    stream_handler.setFormatter(logging_debug_formatter)
 

	
0 comments (0 inline, 0 general)