diff --git a/ctlsettings/production.py b/ctlsettings/production.py index ca1454d..636c3f8 100644 --- a/ctlsettings/production.py +++ b/ctlsettings/production.py @@ -72,11 +72,18 @@ def common(**kwargs): LOGGING = { 'version': 1, 'disable_existing_loggers': False, + 'formatters': { + 'timestamped': { + 'format': '{asctime} {levelname} {message}', + 'style': '{' + }, + }, 'handlers': { 'file': { 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': '/var/log/django/' + project + '.log', + 'formatter': 'timestamped', }, }, 'loggers': { diff --git a/ctlsettings/staging.py b/ctlsettings/staging.py index 84b06da..15419ff 100644 --- a/ctlsettings/staging.py +++ b/ctlsettings/staging.py @@ -77,11 +77,18 @@ def common(**kwargs): LOGGING = { 'version': 1, 'disable_existing_loggers': False, + 'formatters': { + 'timestamped': { + 'format': '{asctime} {levelname} {message}', + 'style': '{' + }, + }, 'handlers': { 'file': { 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': '/var/log/django/' + project + '.log', + 'formatter': 'timestamped', }, }, 'loggers': {