Re: Seeking a Django 1.3 and syslog configuration example

2011-06-03 Thread Rob
Well that worked but I'm not happy about it. I have the following: from logging.handlers import SysLogHandler ... 'syslog':{ 'level':'DEBUG', 'class': 'logging.handlers.SysLogHandler', 'formatter': 'verbose', 'facility'

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-03 Thread Piotr Zalewa
In Add-ons Builder I've got something like this in log_settings.py https://github.com/mozilla/FlightDeck/blob/master/log_settings.py 'handlers': { 'syslog': { '()': logging.handlers.SysLogHandler, 'facility': logging.handlers.SysLogHandler.LOG_LOCAL7,

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-03 Thread Rob
Thanks, but this doesn't help at all. I have no problem getting the RotatingFileHandler working, it is documented albeit poorly, but the SysLogHandler isn't documented at all and doesn't work the same way. The SysLogHandler actually has to connect to syslogd and log to a syslog facility (eg. LOG_

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-02 Thread Matteius
# Configure Project Logging using Django Logging setting and specifying # Dict-Config to Python 1.6 LOGGING = { 'version': 1, 'formatters': { 'simple': { 'format': '%(asctime)s %(levelname)s %(module)s [%(name)s] - %(message)s \n', }, 'verbose': {

Re: Seeking a Django 1.3 and syslog configuration example

2011-06-01 Thread Shawn Milochik
This should help out. It's for a file, not SysLogHandler, but the idea is the same. Just take any arguments you would normally pass to the handler if you were creating it programmatically and add them as keys to the dictionary: 'log_file': { 'level': 'DEBUG', '

Seeking a Django 1.3 and syslog configuration example

2011-06-01 Thread Rob
I'm having no luck finding any information on setting up syslog logging with Django 1.3 dictionary configuration. The Django documents don't cover syslog and the python documentation is less than clear and doesn’t cover dictionary config at all. I've started with the following but I'm stuck on how