forked from trew/PokemonGoMapNotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.yaml
37 lines (35 loc) · 802 Bytes
/
logging.yaml
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
version: 1
formatters:
simpleFormatter:
format: '%(asctime)s %(levelname)s [%(threadName)s] %(name)s - %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
formatter: simpleFormatter
level: DEBUG
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
formatter: simpleFormatter
filename: 'log/server.log'
level: DEBUG
maxBytes: 1024*1024*20
backupCount: 10
encoding: 'utf-8'
loggers:
notifier:
level: INFO
handlers: [console, file]
propagate: False
notifier.config:
level: INFO
handlers: [console, file]
propagate: False
notifier.handler:
level: INFO
handlers: [console, file]
propagate: False
root:
level: DEBUG
handlers: [console, file]