-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.conf
57 lines (45 loc) · 1.03 KB
/
logging.conf
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
[loggers]
keys=root, hypercorn.error, hypercorn.access
[handlers]
keys=console, error_file, access_file, logfile
[formatters]
keys=generic, access, logfile
[logger_root]
level=DEBUG
handlers=console, logfile
[logger_hypercorn.error]
level=INFO
handlers=error_file
propagate=1
qualname=hypercorn.error
[logger_hypercorn.access]
level=DEBUG
handlers=access_file
propagate=0
qualname=hypercorn.access
[handler_console]
class=StreamHandler
formatter=generic
args=(sys.stdout, )
[handler_error_file]
class=logging.FileHandler
formatter=generic
args=('hypercorn.error.log',)
[handler_access_file]
class=logging.FileHandler
formatter=access
args=('hypercorn.access.log',)
[handler_logfile]
class=handlers.RotatingFileHandler
level=INFO
args=('app.log', 'a', 100000, 10)
formatter=logfile
[formatter_generic]
format=%(asctime)s [%(levelname)s] %(name)s: %(message)s
datefmt=%Y-%m-%d %H:%M:%S
class=logging.Formatter
[formatter_access]
format=%(message)s
class=logging.Formatter
[formatter_logfile]
format=%(asctime)s [%(levelname)s] %(name)s: %(message)s