-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.cfg
44 lines (44 loc) · 1015 Bytes
/
logging.cfg
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
version: 1
disable_existing_loggers: true
formatters:
detail:
format: '[%(asctime)s] %(levelname)-8s [%(name)s.%(funcName)s:%(lineno)d] %(message)s'
simple:
format: '%(levelname)s:%(name)s:%(message)s'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: simple
stream: ext://sys.stdout
file:
class : logging.handlers.TimedRotatingFileHandler
formatter: detail
filename: log/app.log
backupCount: 20
encoding: utf-8
when: 'W0'
loggers:
__main__:
level: DEBUG
handlers: [console, file]
propagate: no
geotech.config:
level: DEBUG
handlers: [console, file]
propagate: no
geotech.distributions:
level: DEBUG
handlers: [console, file]
propagate: no
geotech.settlement:
level: DEBUG
handlers: [console, file]
propagate: no
geotech.soil:
level: DEBUG
handlers: [console, file]
propagate: no
root:
level: INFO
handlers: [console,file]