-
Notifications
You must be signed in to change notification settings - Fork 95
/
logging.conf
41 lines (31 loc) · 731 Bytes
/
logging.conf
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
[loggers]
keys=root
[handlers]
keys=screen,file,email
[formatters]
keys=normal,email
[logger_root]
level=INFO
handlers=screen
#handlers=file
#handlers=file,email
[handler_file]
class=FileHandler
formatter=normal
args=('server.log','a')
[handler_screen]
class=StreamHandler
level=NOTSET
formatter=normal
args=(sys.stdout,)
[handler_email]
class=handlers.SMTPHandler
level=ERROR
formatter=email
args=('smtp.example.com', '[email protected]', ['[email protected]', '[email protected]'], 'AnkiServer error', ('smtp_user', 'smtp_password'))
[formatter_normal]
format=%(asctime)s:%(name)s:%(levelname)s:%(message)s
datefmt=
[formatter_email]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=