Добавил логирование в телегу

This commit is contained in:
2025-11-07 21:05:21 +03:00
parent 9ff34bc049
commit e18407f33e

View File

@@ -1,7 +1,7 @@
# === Раздел с общими конфигурационными параметрами ===
update_interval: 2
work_interval: 2
update_interval: 10
work_interval: 30
email_dir: "spareparts"
@@ -32,26 +32,27 @@ log:
maxBytes: 500000
backupCount: 10
#telegram:
# level: CRITICAL
# formatter: telegram
# class: logging_telegram_handler.TelegramHandler
# chat_id: 211945135
# alias: "PDC"
telegram:
level: CRITICAL
formatter: telegram
class: logging_telegram_handler.TelegramHandler
chat_id: 211945135
alias: "Mail order bot"
# -- Логгеры --
loggers:
'':
handlers: [console, file]
handlers: [console, file, telegram]
level: INFO
propagate: False
__main__:
handlers: [console, file]
handlers: [console, file, telegram]
level: INFO
propagate: False
config_manager:
handlers: [console, file]
level: DEBUG