generated from InValidFire/discord-bot-template
40 lines
No EOL
1 KiB
YAML
40 lines
No EOL
1 KiB
YAML
version: 1
|
|
disable_existing_loggers: True
|
|
formatters:
|
|
simple:
|
|
format: "%(asctime)s - [%(threadName)s|%(levelname)s] - %(message)s"
|
|
handlers:
|
|
console:
|
|
class: logging.StreamHandler
|
|
level: DEBUG
|
|
formatter: simple
|
|
stream: ext://sys.stdout
|
|
info_file_handler:
|
|
class: logging.handlers.RotatingFileHandler
|
|
level: INFO
|
|
formatter: simple
|
|
filename: applog/info.log
|
|
maxBytes: 10485760 # 10MB
|
|
backupCount: 20
|
|
encoding: utf8
|
|
error_file_handler:
|
|
class: logging.handlers.RotatingFileHandler
|
|
level: ERROR
|
|
formatter: simple
|
|
filename: applog/errors.log
|
|
maxBytes: 10485760 # 10MB
|
|
backupCount: 20
|
|
encoding: utf8
|
|
loggers:
|
|
system:
|
|
level: INFO
|
|
handlers: [ console, info_file_handler ]
|
|
propogate: no
|
|
discord:
|
|
level: INFO
|
|
handlers: [ console, info_file_handler ]
|
|
propogate: no
|
|
bot:
|
|
level: INFO
|
|
handlers: [ console, info_file_handler ]
|
|
propogate: no |