I want to configure a Sentry logger for a Django project. I define a sentry handler and put this handler in the root log with the error level.
According to the documentation of the logging module, there is a special root key:
root - this will be the root registrar configuration. The configuration processing will be the same as for any registrar, except that the propagate parameter will not be applied.
At the same time, in other places where the log with the name '' is stored, contains the configuration for the root logger.
Does this have the same effect? Which is preferable?
>>> import logging >>> logging.getLogger('') is logging.root True >>>
python django logging sentry
warvariuc Nov 28 '13 at 6:14 2013-11-28 06:14
source share