[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=DEBUG 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 - %(module)s:%(lineno)d - %(levelname)s - %(message)s