Hi,
I’m currently setting up sentry via my logging config roughly like so (taken from docs):
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'console': {
'format': '[%(asctime)s][%(levelname)s] %(name)s '
'%(filename)s:%(funcName)s:%(lineno)d | %(message)s',
'datefmt': '%H:%M:%S',
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'console'
},
'sentry': {
'level': 'ERROR',
'class': 'raven.handlers.logging.SentryHandler',
'dsn': '___DSN___',
},
},
'loggers': {
'': {
'handlers': ['console', 'sentry'],
'level': 'DEBUG',
'propagate': False,
},
'your_app': {
'level': 'DEBUG',
'propagate': True,
},
}
}
I’d like to start using a processor, can I specify processors
inside the handlers.sentry dict? Do all of the parameters in that dictionary get passed to SentryHandler as kwargs? e.g
’handlers’: {
‘console’: {
‘level’: ‘DEBUG’,
‘class’: ‘logging.StreamHandler’,
‘formatter’: ‘console’
},
‘sentry’: {
‘level’: ‘ERROR’,
‘class’: ‘raven.handlers.logging.SentryHandler’,
‘dsn’: ‘DSN’,
‘processors’: (‘my.lovely.Processor’), # <<<<<<< does this work?
},
},
Cheers,
Pete