-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.cfg
executable file
·66 lines (46 loc) · 1.1 KB
/
logging.cfg
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
[loggers]
keys=root,logFile
[handlers]
keys=consoleHandler,fHandler,mailHandler
[formatters]
keys=form01,form02,form03
[logger_root]
level=DEBUG
handlers=consoleHandler
[logger_logFile]
level=DEBUG
handlers=fHandler,mailHandler
qualname=logFile
propagate=1
[logger_logMail]
level=DEBUG
handlers=mailHandler
qualname=logMail
propagate=1
[handler_consoleHandler]
class =StreamHandler
level =DEBUG
formatter =form01
args =(sys.stdout,)
[handler_fHandler]
class =handlers.RotatingFileHandler
level =DEBUG
formatter =form02
args =('python.log', 'a', 128000, 4)
[handler_mailHandler]
class =handlers.SMTPHandler
level =CRITICAL
formatter =form03
args =( ('smtp.gmail.com','465'), '[email protected]', ['[email protected]'], 'Logger Subject', None, None, 33)
[formatter_form01]
format=%(asctime)s %(levelname)-7s %(message)s
datefmt=
class=logging.Formatter
[formatter_form02]
format=%(asctime)s %(levelname)-7s %(message)s
datefmt=
class=logging.Formatter
[formatter_form03]
format=%(asctime)s %(levelname)s %(message)s
datefmt=
class=logging.Formatter