Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Log via syslog instead.

  • Loading branch information...
commit 68f2a25cd24af2d54dbc8a91a176576dbc6db976 1 parent 65b80e1
Noah Kantrowitz authored October 18, 2013

Showing 1 changed file with 5 additions and 7 deletions. Show diff stats Hide diff stats

  1. 12  django_www/common_settings.py
12  django_www/common_settings.py
@@ -92,16 +92,14 @@
92 92
     }
93 93
 }
94 94
 if PRODUCTION:
95  
-    LOGGING["handlers"]["logfile"] = {
  95
+    LOGGING["handlers"]["syslog"] = {
96 96
         "formatter": "full",
97 97
         "level": "DEBUG",
98  
-        "class": "logging.handlers.TimedRotatingFileHandler",
99  
-        "filename": "/var/log/django_website/website.log",
100  
-        "when": "D",
101  
-        "interval": 7,
102  
-        "backupCount": 5,
  98
+        "class": "logging.handlers.SyslogHandler",
  99
+        "address": "/dev/log",
  100
+        "facility": "local4",
103 101
     }
104  
-    LOGGING["loggers"]["django.request"]["handlers"].append("logfile")
  102
+    LOGGING["loggers"]["django.request"]["handlers"].append("syslog")
105 103
 
106 104
 
107 105
 MANAGERS = (

0 notes on commit 68f2a25

Please sign in to comment.
Something went wrong with that request. Please try again.