blob: b88619074e8eb65541f24be2782c87a83e640831 [file] [log] [blame]
Michal Kobus17726ae2018-11-27 12:59:55 +01001LOGGING = {
2 'version': 1,
3 'formatters': {'default': {
4 'format': '[%(asctime)s] %(levelname)s in %(module)s: %(message)s',
5 }},
6 'handlers': {
7 'wsgi': {
8 'class': 'logging.StreamHandler',
9 'stream': 'ext://flask.logging.wsgi_errors_stream',
10 'formatter': 'default'
11 },
12 'file': {
13 'class': 'logging.handlers.RotatingFileHandler',
14 'formatter': 'default',
15 'filename': '/var/log/sf-notifier/sfnotifier.log',
16 'mode': 'a',
17 'maxBytes': 10485760,
18 'backupCount': 5
19 }
20 },
21 'loggers': {
22 'sf_notifier.server': {
23 'level': 'WARN',
24 'handlers': ['file', 'wsgi']
25 },
26 'sf_notifier.salesforce.client': {
27 'level': 'WARN',
28 'handlers': ['file', 'wsgi']
29 }
30 }
31}
32
33SIMPLE_SETTINGS = {
34 'OVERRIDE_BY_ENV': True,
35 'CONFIGURE_LOGGING': True,
36}
37
38SF_CONFIG = {}