Hi,
Cool, that helps clear some things up, thanks =).
So based on here:
and raven/conf/__init__.py, I should do:
from raven.handlers.logging import SentryHandler
client = Sentry(...)
setup_logging(SentryHandler(client))
And then after that, I can use logging.get_logger(), and whenever I call logger.error(), it will pass to Sentry?
Or I can just put client.captureException() into my exception handling code. (Or am I better off using logger.error('There was an error, with a stacktrace!', exc_info=True) ?)
I noticed that the handler only seems to capture error-level messages. I'm just curious where that's configured?
I couldn't seem to find that explicitly set in SetupHandler - I thought it takes it from a kwarg in SetupHandler, but I can't see that being set anywhere so I thought it would fall back to NOTSET?
Or is it somehow related to?
Cheers,
Victor