mirror of
https://github.com/nwithan8/plex-prerolls
synced 2024-08-30 16:52:17 +00:00
37 lines
705 B
Plaintext
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
|