forked from XeroAPI/xero-python-oauth2-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging_settings.py
26 lines (25 loc) · 881 Bytes
/
logging_settings.py
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
# -*- coding: utf-8 -*-
default_settings = {
"version": 1,
"formatters": {
"default": {"format": "[%(asctime)s] %(levelname)s in %(module)s: %(message)s"},
"verbose": {
"format": "%(asctime)s | %(levelname)s [%(name)s.%(filename)s:%(lineno)s] %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S%z",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"stream": "ext://flask.logging.wsgi_errors_stream",
"formatter": "verbose",
"level": "DEBUG",
}
},
"loggers": {
"requests_oauthlib": {"handlers": ["console"], "level": "DEBUG"},
"xero_python": {"handlers": ["console"], "level": "DEBUG"},
"urllib3": {"handlers": ["console"], "level": "DEBUG"},
},
# "root": {"level": "DEBUG", "handlers": ["console"]},
}