Does anybody noticed missed log messages with existing logging solution for some multiprocess server configuration? (I ask again for sure)
Thanks Mike, you are right it is good to write at least ERROR or maybe warning level to webserver log to be sure that nothing important never disappears and all errors are together. The existing solution with external file which is rewritten on every django restart is however very good for debugging. It reminds me that it is good to use settings.py derived more from the default settings.py of different new Django versions. That means that we should provide at least one additional template different for Django 1.2 and Django 1.3. Now I am preparig only minimal differences which are requested by Django warnings and which can be done by simple string substitution. -- Hynek On 29 pro, 18:33, Mike Johnson <[email protected]> wrote: > 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 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.
