From 043fd29dae95d3d68500de84accdc818f56ead1c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 4 Oct 2016 18:23:59 +0200 Subject: settings: add a simple LOGFILE_NAME parameter --- settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings.py b/settings.py index 8806929..c62dda6 100644 --- a/settings.py +++ b/settings.py @@ -273,6 +273,7 @@ INSTALLED_APPS += [ 'chimere', ] +LOGFILE_NAME = "" LOG_PATH = '/var/log/django/' MOBILE_DOMAINS = [] # if you have specific domains for mobile access @@ -328,6 +329,8 @@ if 'LOGGING' not in globals(): }, } +if LOGFILE_NAME: + LOGGING['handlers']['logfile']['filename'] = LOGFILE_NAME if 'CHIMERE_SHARE_NETWORKS' not in globals(): # after the locals to get the right STATIC_URL -- cgit v1.2.3