Commit 1991bd0f authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

adding logger config

parent fc79fbd3
# List of loggers, handlers and formatters:
[loggers]
keys=root, resif_data_reporter
[handlers]
keys=consoleHandler, fileHandler
[formatters]
keys=generic, verbose
# loggers:
[logger_root]
level=INFO
handlers=consoleHandler
[logger_resif_data_reporter]
level=DEBUG
handlers=consoleHandler, fileHandler
qualname=resif_data_reporter
propagate=0
# handlers:
[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=INFO
formatter=generic
args=('log/resif_data_reporter.log', 'd', 1, 5, None, False, False)
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=generic
args=(sys.stdout,)
# formatters:
[formatter_generic]
#format=[%(asctime)s] %(levelname)s (%(process)d) [%(pathname)s:%(lineno)d] %(message)s
format=[%(asctime)s] %(levelname)s (%(process)d) [%(name)s:%(lineno)d] %(message)s
datefmt=
# datefmt='%Y-%m-%d %H:%M:%
[formatter_verbose]
format=[%(asctime)s] %(levelname)s (%(process)d) [%(pathname)s:%(lineno)d] %(message)s %(stack_info)s
datefmt=
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment