-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.conf.json
96 lines (95 loc) · 2.62 KB
/
logging.conf.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"version": 1,
"disable_existing_loggers": "True",
"filters": {
},
"formatters": {
"standard": {
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
},
"simple": {
"format": "%(asctime)s - %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S"
},
"detailed": {
"format": "%(asctime)s - %(pathname):%(lineno) - %(message)s"
},
"logformat_simple": {
"format": "\n\t%(asctime)s - %(name)s || %(filename)s:%(funcName)s [%(lineno)d]\t%(levelname)s : %(message)s\t\n",
"datefmt": "%Y-%m-%d %H:%M:%S"
},
"logformat_detailed": {
"format": "\n\t%(asctime)s - %(name)s || %(pathname)s:%(filename)s:%(funcName)s [%(lineno)d]\t%(levelname)s : %(message)s\t\n",
"datefmt": "%Y-%m-%d %H:%M:%S"
}
},
"handlers": {
"default": {
"class": "logging.StreamHandler",
"level": "INFO",
"filters": [],
"formatter": "standard",
"stream": "ext://sys.stdout"
},
"stderr": {
"class": "logging.StreamHandler",
"level": "WARNING",
"filters": [],
"formatter": "simple",
"stream": "ext://sys.stderr"
},
"console": {
"class": "logging.StreamHandler",
"level": "INFO",
"filters": [],
"formatter": "logformat_simple"
},
"file": {
"class": "logging.FileHandler",
"level": "DEBUG",
"filters": [],
"formatter": "logformat_detailed",
"filename":"logfile.log",
"mode": "a",
"encoding": "utf-8"
}
},
"loggers": {
"": {
"handlers": ["stderr"],
"level": "WARNING",
"filters": [],
"propagate": "False"
},
"__main__": {
"handlers": ["stderr", "console", "file"],
"level": "INFO",
"filters": [],
"propagate": "False"
},
"sim_world.envs.car_0.ev3_sim_car.SimCar": {
"handlers": ["stderr", "console", "file"],
"level": "INFO",
"filters": [],
"propagate": "False"
},
"sim_world.envs.pygame_0.ev3_sim_pygame_2d_V2.PyGame2D": {
"handlers": ["stderr", "console", "file"],
"level": "INFO",
"filters": [],
"propagate": "False"
},
"sim_world.envs.simulation_env.CustomEnv": {
"handlers": ["stderr", "console", "file"],
"level": "INFO",
"filters": [],
"propagate": "False"
}
},
"root": {
"handlers": ["stderr"],
"level": "WARNING",
"filters": [],
"propagate": "False"
}
}