Dockerify pro-salute #10
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
import logging
|
||||
import os
|
||||
import dj_database_url
|
||||
|
||||
from logging.handlers import RotatingFileHandler
|
||||
from .base import *
|
||||
|
||||
# Do not set SECRET_KEY, Postgres or LDAP password or any other sensitive data here.
|
||||
|
@ -194,7 +196,7 @@ if 'LOG_DIR' in env:
|
|||
# Public Health Schweiz log
|
||||
LOGGING['handlers']['publichealth_file'] = {
|
||||
'level': 'INFO',
|
||||
'class': 'cloghandler.ConcurrentRotatingFileHandler',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': os.path.join(env['LOG_DIR'], 'publichealth.log'),
|
||||
'maxBytes': 5242880, # 5MB
|
||||
'backupCount': 5
|
||||
|
@ -204,7 +206,7 @@ if 'LOG_DIR' in env:
|
|||
# Wagtail log
|
||||
LOGGING['handlers']['wagtail_file'] = {
|
||||
'level': 'WARNING',
|
||||
'class': 'cloghandler.ConcurrentRotatingFileHandler',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': os.path.join(env['LOG_DIR'], 'wagtail.log'),
|
||||
'maxBytes': 5242880, # 5MB
|
||||
'backupCount': 5
|
||||
|
@ -214,7 +216,7 @@ if 'LOG_DIR' in env:
|
|||
# Error log
|
||||
LOGGING['handlers']['errors_file'] = {
|
||||
'level': 'ERROR',
|
||||
'class': 'cloghandler.ConcurrentRotatingFileHandler',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': os.path.join(env['LOG_DIR'], 'error.log'),
|
||||
'maxBytes': 5242880, # 5MB
|
||||
'backupCount': 5
|
||||
|
|
Loading…
Reference in a new issue