forked from pyraixyz/PYRAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.yaml
More file actions
51 lines (43 loc) · 1.01 KB
/
Copy pathlogging.yaml
File metadata and controls
51 lines (43 loc) · 1.01 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
version: 1
disable_existing_loggers: false
formatters:
standard:
format: '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
json:
(): pythonjsonlogger.jsonlogger.JsonFormatter
format: '%(asctime)s %(levelname)s %(name)s %(message)s %(pathname)s %(lineno)d'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: standard
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: json
filename: logs/pyrai.log
maxBytes: 10485760 # 10MB
backupCount: 5
encoding: utf8
sentry:
class: sentry_sdk.integrations.logging.LoggingIntegration
level: ERROR
event_level: ERROR
loggers:
pyrai:
level: INFO
handlers: [console, file, sentry]
propagate: false
uvicorn:
level: INFO
handlers: [console]
propagate: false
sqlalchemy:
level: WARNING
handlers: [console, file]
propagate: false
root:
level: INFO
handlers: [console]