-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging_config.yaml
More file actions
66 lines (64 loc) · 1.96 KB
/
Copy pathlogging_config.yaml
File metadata and controls
66 lines (64 loc) · 1.96 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
64
65
66
version: 1
helper:
filePrefixChars: '%' # used to replace
filePattern: r'(?P<prefix_holder>%+)(?P<log_file_name>[\\/\w]*\.\w*)'
fileReplPattern: r'{}/\g<log_file_name>'
fileHandelerConfigs: &fileHandelerBasicConfigs
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: fileFormat
maxBytes: 1048576 # 1*1024*1024 B = 1 MB
backupCount: 3
encoding: 'utf-8'
consoleHanderConfigs: &consoleHanderBasicConfigs
class: logging.StreamHandler
level: INFO
formatter: streamFormat
stream: ext://sys.stdout
formatters:
fileFormat:
format: "%(asctime)s.%(msecs)03d:%(name)s:%(levelname)s: %(message)s"
datefmt: "%Y-%m-%d %I:%M:%S"
streamFormat:
format: "%(name)s:%(levelname)s: %(message)s"
datefmt: "%Y-%m-%d %I:%M:%S"
handlers:
buildingFileHandeler:
filename: '%logs/building/building_log.log'
<<: *fileHandelerBasicConfigs
trainingFileHandeler:
filename: '%logs/training/training_log.log'
<<: *fileHandelerBasicConfigs
fileHandeler:
filename: './logs/untitled.log'
<<: *fileHandelerBasicConfigs
console:
<<: *consoleHanderBasicConfigs
loggers:
implementations:
level: DEBUG
handlers: [fileHandeler,console]
propagate: yes
datasets:
level: DEBUG
handlers: [buildingFileHandeler,console]
propagate: yes
models:
level: DEBUG
handlers: [buildingFileHandeler,console]
propagate: yes
models._mri_trans_gan_model_modified:
level: DEBUG
handlers: [trainingFileHandeler,console]
propagate: yes
training:
level: DEBUG
handlers: [buildingFileHandeler,console]
propagate: yes
utils:
level: DEBUG
handlers: [buildingFileHandeler,console]
propagate: yes
# root: # do not influence root
# level: INFO
# handlers: [console]