mirror of
https://git.oceanpay.cc/danial/kami_jd_ck.git
synced 2025-12-18 22:56:11 +00:00
35 lines
622 B
Plaintext
35 lines
622 B
Plaintext
[loggers]
|
|
keys=root,app
|
|
|
|
[handlers]
|
|
keys=consoleHandler,fileHandler
|
|
|
|
[formatters]
|
|
keys=simpleFormatter
|
|
|
|
[logger_root]
|
|
level=INFO
|
|
handlers=consoleHandler,fileHandler
|
|
|
|
[logger_app]
|
|
level=INFO
|
|
handlers=consoleHandler,fileHandler
|
|
qualname=app
|
|
propagate=0
|
|
|
|
[handler_consoleHandler]
|
|
class=StreamHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=(sys.stdout,)
|
|
|
|
[handler_fileHandler]
|
|
class=handlers.RotatingFileHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=('/app/logs/app.log', 'a', 10485760, 5)
|
|
encoding=utf8
|
|
|
|
[formatter_simpleFormatter]
|
|
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
|
|
datefmt=%Y-%m-%d %H:%M:%S |