-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlog_conf.yaml
More file actions
89 lines (88 loc) · 2.32 KB
/
Copy pathlog_conf.yaml
File metadata and controls
89 lines (88 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 1
disable_existing_loggers: False
formatters:
default:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
access:
format: '[%(asctime)s] %(levelname)s [%(filename)s:%(lineno)d] %(message)s'
json:
"()": pythonjsonlogger.jsonlogger.JsonFormatter
format: '%(asctime)s %(name)s %(levelname)s %(message)s %(pathname)s %(lineno)d'
filters:
error_and_above:
"()": logging_filters.LevelFilter
min_level: ERROR
warn_and_below:
"()": logging_filters.LevelFilter
max_level: WARNING
handlers:
default:
formatter: default
class: logging.StreamHandler
stream: ext://sys.stderr
access:
formatter: access
class: logging.StreamHandler
stream: ext://sys.stdout
json:
formatter: json
class: logging.StreamHandler
stream: ext://sys.stderr
level: ERROR
filters:
- error_and_above
# YAML anchor for shared bot logger configuration
bot_logger_config: &bot_logger_config
level: INFO
handlers:
- access
propagate: no
loggers:
sqlalchemy:
level: ERROR
handlers:
- access
propagate: yes
httpx:
level: ERROR
handlers:
- default
propagate: yes
uvicorn.error:
level: ERROR
handlers:
- default
propagate: no
uvicorn.access:
level: ERROR
handlers:
- access
propagate: no
circuit_cli.client:
level: INFO
handlers:
- access
propagate: no
# All bot loggers now share the same configuration using YAML references
# This eliminates duplication while maintaining individual logger names
announcer_configure_bot: *bot_logger_config
announcer_update_bot: *bot_logger_config
oracle_update_bot: *bot_logger_config
statutes_update_bot: *bot_logger_config
governance_veto_bot: *bot_logger_config
governance_implement_bot: *bot_logger_config
recharge_start_settle_bot: *bot_logger_config
recharge_bid_bot: *bot_logger_config
savings_bot: *bot_logger_config
surplus_start_settle_bot: *bot_logger_config
# Add other bot loggers here as needed - they will all inherit the shared config
bad_debt_recovery_bot: *bot_logger_config
liquidation_bid_bot: *bot_logger_config
liquidation_start_bot: *bot_logger_config
stability_fee_transfer_bot: *bot_logger_config
treasury_rebalance_bot: *bot_logger_config
root:
level: INFO
handlers:
- access
propagate: yes