--- version: 1 disable_existing_loggers: False formatters: simple: format: "[%(asctime)s] [%(filename)15.15s:%(lineno)4.4s %(funcName)15.15s] [%(levelname)-4.4s] %(message)s" datefmt: "%Y-%m-%d %H:%M:%S" handlers: console: class: logging.StreamHandler level: INFO formatter: simple stream: ext://sys.stdout info_file_handler: class: logging.handlers.RotatingFileHandler level: INFO formatter: simple filename: info.log maxBytes: 10485760 # 10MB backupCount: 3 encoding: utf8 warning_file_handler: class: logging.handlers.RotatingFileHandler level: WARNING formatter: simple filename: warning.log maxBytes: 10485760 # 10MB backupCount: 3 encoding: utf8 error_file_handler: class: logging.handlers.RotatingFileHandler level: ERROR formatter: simple filename: error.log maxBytes: 10485760 # 10MB backupCount: 3 encoding: utf8 loggers: my_module: level: ERROR handlers: [console] propagate: no root: level: DEBUG handlers: [console, info_file_handler, error_file_handler, warning_file_handler]