-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogging_config.json
45 lines (45 loc) · 1.18 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
39
40
41
42
43
44
45
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "\n[sciscraper]: %(asctime)s - %(message)s\n"
},
"detailed": {
"format": "\n[sciscraper: %(levelname)s|%(module)s|L%(lineno)d]: %(message)s\n",
"datefmt": "%Y-%m-%dT%H:%M:%S%z"
}
},
"handlers": {
"stderr": {
"class": "logging.StreamHandler",
"level": "WARNING",
"formatter": "simple",
"stream": "ext://sys.stderr"
},
"stdout": {
"class": "logging.StreamHandler",
"level": "INFO",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"file": {
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "simple",
"filename": ".logs/sciscraper.log",
"maxBytes": 100000,
"backupCount": 3
}
},
"loggers": {
"root": {
"level": "DEBUG",
"handlers": [
"stdout",
"stderr",
"file"
]
}
}
}