-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.yaml
82 lines (64 loc) · 1.52 KB
/
logging.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
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
version: 1
formatters:
screen:
format: "\u001b[37m%(asctime)s %(name)-24s %(funcName)-24s \u001b[32m%(levelname)-8s \u001b[30m\u001b[1m%(message)s\u001b[0m"
datefmt: "%Y-%m-%d %H:%M:%S"
logfile:
format: "%(asctime)s | %(name)-24s %(funcName)-20.20s %(lineno)-3d | %(threadName)-12.12s | %(levelname)-8s | %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
handlers:
all:
class: logging.StreamHandler
level: NOTSET
formatter: screen
stream: ext://sys.stdout
important:
class: logging.StreamHandler
level: WARNING
formatter: screen
stream: ext://sys.stdout
info:
class: logging.StreamHandler
level: INFO
formatter: screen
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
backupCount: 5
level: DEBUG
formatter: logfile
filename: logs/log-zeesheet2-txt
encoding: utf8
when: midnight
loggers:
common:
level: DEBUG
handlers: [ important, file ]
propagate: no
layout:
level: DEBUG
handlers: [ all, file ]
propagate: no
generate:
level: ERROR
handlers: [ important, file ]
propagate: no
drawing:
level: INFO
handlers: [ important, file ]
propagate: no
PIL.rst:
level: ERROR
handlers: [ important, file ]
propagate: no
PIL.PngImagePlugin:
level: ERROR
handlers: [ important, file ]
propagate: no
PIL.TiffImagePlugin:
level: ERROR
handlers: [ important, file ]
propagate: no
root:
level: DEBUG
handlers: [ important, file ]