Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log via syslog instead.

  • Loading branch information...
commit 68f2a25cd24af2d54dbc8a91a176576dbc6db976 1 parent 65b80e1
@coderanger coderanger authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 django_www/common_settings.py
View
12 django_www/common_settings.py
@@ -92,16 +92,14 @@
}
}
if PRODUCTION:
- LOGGING["handlers"]["logfile"] = {
+ LOGGING["handlers"]["syslog"] = {
"formatter": "full",
"level": "DEBUG",
- "class": "logging.handlers.TimedRotatingFileHandler",
- "filename": "/var/log/django_website/website.log",
- "when": "D",
- "interval": 7,
- "backupCount": 5,
+ "class": "logging.handlers.SyslogHandler",
+ "address": "/dev/log",
+ "facility": "local4",
}
- LOGGING["loggers"]["django.request"]["handlers"].append("logfile")
+ LOGGING["loggers"]["django.request"]["handlers"].append("syslog")
MANAGERS = (
Please sign in to comment.
Something went wrong with that request. Please try again.