-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml
50 lines (50 loc) · 1.59 KB
/
config.yaml
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
logging:
version: 1
disable_existing_loggers: true
formatters:
brief:
format: "%(levelname)-8s; %(name)-35s; %(message)s"
single_line:
format: "%(asctime)s; %(levelname)-8s; %(name)-35s; %(funcName)-20s;%(lineno)4d: %(message)s"
multi_process:
format: "%(asctime)s; %(levelname)-8s; [%(thread;)s]; %(name)-35s; %(funcName)-20s;%(lineno)-4d: %(message)s"
multi_thread:
format: "%(asctime)s; %(levelname)-8s; [%(process)d]; %(name)-35s; %(funcName)-20s;%(lineno)-4d: %(message)s"
verbose:
format: "%(asctime)s; %(levelname)-8s; [%(process)d - %(thread)s]; %(name)-35s; %(funcName)-20s;%(lineno)4d: %(message)s"
multi_line:
format: "Level: %(levelname)s\nTime: %(asctime)s\nProcess: %(process)d\nThread: %(thread)s\nLogger: %(name)s\nPath: %(module)s:%(lineno)d\nFunction :%(funcName)s\nMessage: %(message)s\n"
handlers:
console:
level: DEBUG
class: logging.StreamHandler
formatter: single_line
stream : ext://sys.stdout
errors:
level: WARNING
class: logging.handlers.WatchedFileHandler
formatter: verbose
filename: /tmp/pg.log
mode: a
encoding: utf-8
smtp:
level: ERROR
class: logging.handlers.SMTPHandler
formatter: multi_line
mailhost: [127.0.0.1, 25]
fromaddr: [email protected]
toaddrs: [[email protected]]
subject: Something went wrong
loggers:
custom_logger:
level: DEBUG
requests:
level: WARNING
sqlalchemy:
level: WARNING
alembic:
level: INFO
root:
level: DEBUG
handlers:
- console