2021-04-12 19:47:21 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
logging:
|
|
|
|
disable_existing_loggers: false
|
|
|
|
formatters:
|
|
|
|
base:
|
|
|
|
class: library.logging.formatters.BaseFormatter
|
|
|
|
default:
|
|
|
|
class: library.logging.formatters.DefaultFormatter
|
|
|
|
none:
|
|
|
|
class: logging.Formatter
|
|
|
|
traceback:
|
|
|
|
class: library.logging.formatters.TracebackFormatter
|
|
|
|
handlers:
|
|
|
|
debug:
|
2022-03-28 16:39:36 +02:00
|
|
|
class: library.logging.handlers.BaseFileHandler
|
2021-04-12 19:47:21 +02:00
|
|
|
formatter: default
|
2022-03-28 16:39:36 +02:00
|
|
|
filename: '{{ log_path }}/debug.log'
|
2021-04-12 19:47:21 +02:00
|
|
|
level: DEBUG
|
|
|
|
error:
|
|
|
|
class: library.logging.handlers.BaseFileHandler
|
|
|
|
filename: '{{ log_path }}/error.log'
|
|
|
|
formatter: default
|
|
|
|
level: ERROR
|
|
|
|
statbox:
|
|
|
|
class: library.logging.handlers.BaseFileHandler
|
|
|
|
filename: '{{ log_path }}/statbox.log'
|
|
|
|
formatter: default
|
|
|
|
level: INFO
|
|
|
|
traceback:
|
|
|
|
class: library.logging.handlers.BaseFileHandler
|
|
|
|
filename: '{{ log_path }}/traceback.log'
|
|
|
|
formatter: traceback
|
|
|
|
level: ERROR
|
|
|
|
warning:
|
|
|
|
class: library.logging.handlers.BaseFileHandler
|
|
|
|
filename: '{{ log_path }}/warning.log'
|
|
|
|
formatter: default
|
|
|
|
level: WARNING
|
|
|
|
loggers:
|
|
|
|
debug:
|
|
|
|
handlers:
|
|
|
|
- debug
|
|
|
|
propagate: false
|
|
|
|
error:
|
|
|
|
handlers:
|
|
|
|
- error
|
|
|
|
- traceback
|
|
|
|
- warning
|
|
|
|
propagate: false
|
|
|
|
statbox:
|
|
|
|
handlers:
|
|
|
|
- statbox
|
|
|
|
propagate: false
|
|
|
|
telethon:
|
|
|
|
handlers:
|
|
|
|
- error
|
|
|
|
propagate: false
|
|
|
|
root:
|
|
|
|
handlers:
|
|
|
|
- debug
|
|
|
|
level: DEBUG
|
|
|
|
version: 1
|