forked from aneesha/DIVE-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.yaml
44 lines (38 loc) · 1001 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
38
39
40
41
42
43
44
version: 1
disable_existing_loggers: True
formatters:
detailed:
format: '[%(asctime)s] [%(levelname)s] %(name)s:%(lineno)d:%(funcName)s:%(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
colored:
(): 'colorlog.ColoredFormatter'
format: '[%(asctime)s] %(log_color)s [%(levelname)s] %(reset)s %(name)s:%(lineno)d:%(funcName)s:%(blue)s%(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: colored
stream: ext://sys.stdout
log_file:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: detailed
filename: logs/dive.log
encoding: utf8
backupCount: 20
loggers:
dive.base.core.cors:
level: ERROR
boto3:
level: CRITICAL
botocore:
level: CRITICAL
s3transfer:
level: CRITICAL
raven:
level: ERROR
root:
level: DEBUG
handlers: [console, log_file]
propagate: true