plex-prerolls/logging.conf
2023-04-20 19:58:21 -04:00

37 lines
705 B
Plaintext

[loggers]
keys=root,main
[handlers]
keys=consoleHandler,fileHandler
[formatters]
keys=consoleFormatter,fileFormatter
[logger_root]
level=INFO
handlers=consoleHandler,fileHandler
[logger_main]
level=INFO
handlers=consoleHandler,fileHandler
qualname=__main__
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=consoleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=logging.handlers.RotatingFileHandler
level=WARNING
formatter=fileFormatter
args=('logs/schedule_preroll.log', 'a', 20000, 5)
[formatter_consoleFormatter]
format=%(levelname)-8s | %(name)-12s | %(message)s
[formatter_fileFormatter]
format=[%(asctime)s] | %(levelname)-8s | %(name)-12s | %(message)s