title: How to maintain the log name for an unhandled exception in Django
body: <p>I am a bit lost about the logging topic.</p>
  <p>I declare all my loggers with <code>logger = logging.getLogger(__name__)</code> so when logging I have this info available. However, if an unhandled exception happens, I know that Django logs the exception with log name as <code>django.request</code> and so on because of this <a href="https://docs.djangoproject.com/en/4.0/ref/logging/#loggers" rel="nofollow noreferrer">https://docs.djangoproject.com/en/4.0/ref/logging/#loggers</a>, but what if I would like to use the log name I have declared? I know I am not actually calling the logger when the exception happens, but I would like to know the originary module for the exception. Any ideas?</p>
  <p>Thanks!</p>