You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
530 B
33 lines
530 B
[loggers]
|
|
keys=root,main
|
|
|
|
[handlers]
|
|
keys=consoleHandler,fileHandler
|
|
|
|
[formatters]
|
|
keys=fmt
|
|
|
|
[logger_root]
|
|
level=DEBUG
|
|
handlers=consoleHandler
|
|
|
|
[logger_main]
|
|
level=DEBUG
|
|
qualname=file
|
|
handlers=fileHandler
|
|
|
|
[handler_consoleHandler]
|
|
class=StreamHandler
|
|
level=INFO
|
|
formatter=fmt
|
|
args=(sys.stdout,)
|
|
|
|
[handler_fileHandler]
|
|
class=FileHandler
|
|
level=DEBUG
|
|
formatter=fmt
|
|
args=('pixiv.log','a','utf-8',False)
|
|
|
|
[formatter_fmt]
|
|
format=%(asctime)s - %(name)s - %(levelname)s - %(module)s:line:%(lineno)d - %(message)s
|
|
datefmt=%Y-%m-%d %H:%M:%S |