I am using the logging setup below with a django project (also using sentry/raven). The sentry/raven bit is working fine, but the file logging isn't. An empty logfile is created, but whenever I use logging.info('foo')
nothing comes up in the log file (i.e. it remains empty). Any suggestions?
LOGGING = {'version': 1,'disable_existing_loggers': True,'root': {'level': 'WARNING','handlers': ['sentry'],},'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'},},'handlers': {'sentry': {'level': 'ERROR','class': 'raven.contrib.django.handlers.SentryHandler',},'file': {'level': 'INFO','class': 'logging.FileHandler','filename': '/var/log/django/breeding.log',},'console': {'level': 'DEBUG','class': 'logging.StreamHandler','formatter': 'verbose'}},'loggers': {'django.db.backends': {'level': 'ERROR','handlers': ['console'],'propagate': False,},'raven': {'level': 'DEBUG','handlers': ['console'],'propagate': False,},'sentry.errors': {'level': 'DEBUG','handlers': ['console'],'propagate': False,},},
}