forked from oceanobservatories/stream_engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.conf
More file actions
63 lines (50 loc) · 1.34 KB
/
logging.conf
File metadata and controls
63 lines (50 loc) · 1.34 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
[loggers]
keys=root, gunicorn.error, gunicorn.access, qc.results
[handlers]
keys=console, error_file, access_file, qc_results_file
[formatters]
keys=generic, access
[logger_root]
level=INFO
handlers=console, error_file
[logger_gunicorn.error]
level=INFO
handlers=error_file
propagate=1
qualname=gunicorn.error
[logger_gunicorn.access]
level=INFO
handlers=access_file
propagate=0
qualname=gunicorn.access
[logger_qc.results]
level=INFO
handlers=qc_results_file
propagate=0
qualname=qc.results
[handler_console]
class=StreamHandler
formatter=generic
args=(sys.stdout, )
[handler_error_file]
class=util.log_handlers.DynamicConcurrentRotatingFileHandler
formatter=generic
# Rolling 10 logs of size 100MB
args=('logs/stream_engine.error.log', 'a', 100 * 1000 *1024, 10)
[handler_access_file]
class=util.log_handlers.DynamicConcurrentRotatingFileHandler
formatter=access
# Rolling 10 logs of size 100MB
args=('logs/stream_engine.access.log', 'a', 100 * 1000 *1024, 10)
[handler_qc_results_file]
class=util.log_handlers.DynamicConcurrentRotatingFileHandler
formatter=access
# Rolling 10 logs of size 100MB
args=('logs/stream_engine.qc.results.log', 'a', 100 * 1000 *1024, 10)
[formatter_generic]
format=%(asctime)s [%(process)d] [%(levelname)s] %(message)s
datefmt=%Y-%m-%d %H:%M:%S
class=logging.Formatter
[formatter_access]
format=%(message)s
class=logging.Formatter