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