plex-prerolls/logging.conf

37 lines
704 B
Plaintext
Raw Normal View History

2021-01-01 16:12:22 +00:00
[loggers]
keys=root,main
[handlers]
keys=consoleHandler,fileHandler
[formatters]
keys=consoleFormatter,fileFormatter
[logger_root]
2022-10-09 01:11:36 +00:00
level=INFO
2021-01-01 16:12:22 +00:00
handlers=consoleHandler,fileHandler
[logger_main]
2022-10-09 01:11:36 +00:00
level=INFO
2021-01-01 16:12:22 +00:00
handlers=consoleHandler,fileHandler
qualname=__main__
propagate=0
[handler_consoleHandler]
class=StreamHandler
2022-10-09 01:21:18 +00:00
level=INFO
2021-01-01 16:12:22 +00:00
formatter=consoleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=logging.handlers.RotatingFileHandler
2022-10-09 01:21:18 +00:00
level=WARNING
2021-01-01 16:12:22 +00:00
formatter=fileFormatter
args=('log/schedule_preroll.log', 'a', 20000, 5)
[formatter_consoleFormatter]
2022-10-09 01:21:18 +00:00
format=%(levelname)-8s | %(name)-12s | %(message)s
2021-01-01 16:12:22 +00:00
[formatter_fileFormatter]
2022-10-09 01:11:36 +00:00
format=[%(asctime)s] | %(levelname)-8s | %(name)-12s | %(message)s