winloong
3 years ago
1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||
|
[loggers] |
||||
|
keys=root |
||||
|
|
||||
|
[handlers] |
||||
|
keys=fileHandler,stream_handler |
||||
|
|
||||
|
[formatters] |
||||
|
keys=formatter |
||||
|
|
||||
|
[logger_root] |
||||
|
level=INFO |
||||
|
handlers=fileHandler,stream_handler |
||||
|
|
||||
|
[handler_stream_handler] |
||||
|
class=StreamHandler |
||||
|
args=(sys.stdout,) |
||||
|
level=INFO |
||||
|
formatter=formatter |
||||
|
|
||||
|
[handler_fileHandler] |
||||
|
class=FileHandler |
||||
|
args=('logs/log.log', 'a') |
||||
|
level=INFO |
||||
|
formatter=formatter |
||||
|
|
||||
|
[formatter_formatter] |
||||
|
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s |
||||
|
datefmt= |
Loading…
Reference in new issue