Hi Chris,

This is how I've got logging setup in 1.3. I'm keeping it as simple as 
possible and printing everything to the "console," which is picked up by 
the web server and written out to the error log. That's easier to use than 
Python logging because the webserver takes care of rotation and thread race 
issues for me.

The only manual setting I have is for keyedcache, which can be quite 
verbose at the INFO level.

Thanks!
Mike

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'verbose': {
            'format': '%(levelname)s %(asctime)s %(module)s %(process)d 
%(thread)d %(message)s'
        },
    },
    'handlers': {
        'console':{
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'verbose'
        },
        'mail_admins': {
            'level': 'ERROR',
            'class': 'django.utils.log.AdminEmailHandler',
            'include_html': True,
        }
    },
    'loggers': {
        'django.request': {
            'handlers': ['mail_admins'],
            'level': 'ERROR',
            'propagate': True,
        },
        'keyedcache': {
            'handlers': ['console'],
            'level': 'ERROR',
            'propagate': False,
            },
        '': { # everything
            'handlers': ['console'],
            'level': 'INFO',
            'propagate': True,
        },
    }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/satchmo-users/-/B_BWWjIqbR8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to