forked from alex-lechner/PyTorch-GAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging_config.json
38 lines (38 loc) · 1 KB
/
logging_config.json
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
{
"version": 1,
"formatters": {
"brief": {
"class": "logging.Formatter",
"format": "%(name)-12s: %(levelname)-8s %(message)s",
"datefmt": "%d.%m.%Y %H:%M:%S"
},
"default": {
"class": "logging.Formatter",
"format": "%(asctime)s %(name)-12s %(levelname)-8s {%(pathname)s:%(funcName)s:%(lineno)d} %(message)s",
"datefmt": "%d.%m.%Y %H:%M:%S"
}
},
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "brief",
"stream": "ext://sys.stdout"
},
"file": {
"level": "INFO",
"class": "logging.FileHandler",
"formatter": "default",
"filename": "./log/error.log",
"mode": "a",
"encoding": "utf-8"
}
},
"root": {
"level": "DEBUG",
"handlers": [
"console",
"file"
]
}
}