forked from MBRCTV/VultrFirewallDynamicDNS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.logging.yaml
58 lines (45 loc) · 998 Bytes
/
sample.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: 1
formatters:
simple:
format: '[%(asctime)s] (%(name)s) [%(levelname)s] - %(message)s '
datefmt: '%Y-%m-%d %H:%M:%S'
complex:
format: '[%(asctime)s] (%(filename)s:%(lineno)s) [%(levelname)s] - %(message)s '
handlers:
console:
class: logging.StreamHandler
formatter: simple
level: INFO
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
formatter: complex
filename: logging.log
when: midnight
backupCount: 3
interval: 1
level: DEBUG
email:
class: logging.handlers.SMTPHandler
formatter: complex
mailhost:
- imap.gmail.com
- 587
fromaddr: [email protected]
toaddrs:
subject: iamp Logging email
credentials:
- pass
secure:
-
level: WARNING
root:
level: NOTSET
handlers: [console]
propogate: yes
loggers:
main:
handlers: [file, email, error_file]
propogate: no