forked from ec-jrc/Thalassa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
49 lines (48 loc) · 1.56 KB
/
config.yml
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
---
logging:
version: 1
disable_existing_loggers: true
formatters:
brief:
format: '%(levelname)-8s; %(name)-35s; %(message)s'
datefmt: "%I:%M:%S"
standard:
format: '%(asctime)s; %(levelname)-8s; %(name)-35s; %(funcName)-20s;%(lineno)4d: %(message)s'
datefmt: "%I:%M:%S"
multi_process:
class: 'logging.Formatter'
format: '%(asctime)s; %(levelname)-8s; [%(thread;)s]; %(name)-35s; %(funcName)-20s;%(lineno)-4d: %(message)s'
multi_thread:
class: 'logging.Formatter'
format: '%(asctime)s; %(levelname)-8s; [%(process)d]; %(name)-35s; %(funcName)-20s;%(lineno)-4d: %(message)s'
verbose:
class: 'logging.Formatter'
format: '%(asctime)s; %(levelname)-8s; [%(process)d - %(thread)s]; %(name)-35s; %(funcName)-20s;%(lineno)4d: %(message)s'
multi_line:
class: 'logging.Formatter'
format: 'Level: %(levelname)s\nTime: %(asctime)s\nProcess: %(process)d\nThread: %(thread)s\nLogger: %(name)s\nPath: %(module)s:%(lineno)d\nFunction :%(funcName)s\nMessage: %(message)s\n'
handlers:
console:
level: 'DEBUG'
class: 'logging.StreamHandler'
formatter: 'verbose'
stream : 'ext://sys.stdout'
file_handler:
level: 'INFO'
class: 'logging.handlers.WatchedFileHandler'
formatter: 'verbose'
filename: '/tmp/thalassa.log'
mode: 'a'
encoding: 'utf-8'
loggers:
thalassa:
level: 'DEBUG'
propagate: false
handlers:
- 'console'
requests:
level: 'WARNING'
root:
level: 'INFO'
handlers:
- 'console'