diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 18:23:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 18:24:26 +0200 |
commit | 043fd29dae95d3d68500de84accdc818f56ead1c (patch) | |
tree | 1a8c0971a6b655e5e9a5567fa825f6f84d516ec4 | |
parent | f23c9d58d35da6e92b1679088e3c4715f0e76187 (diff) | |
download | Chimère - projet Saclay-043fd29dae95d3d68500de84accdc818f56ead1c.tar.bz2 Chimère - projet Saclay-043fd29dae95d3d68500de84accdc818f56ead1c.zip |
settings: add a simple LOGFILE_NAME parameter
-rw-r--r-- | settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |