title: How can I use a custom logging handler with django?
body: <p>I'm trying to integrate logging with loki in my django app like this:</p>
  
  <pre><code>handler = logging_loki.LokiHandler(
      url="http://localhost:3100/loki/api/v1/push",
      tags={"app": "django", "env": ENV},
      version="1",
  )
  
  LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'formatters': {
         'standard': {
          'format': '[%(asctime)s] {%(module)s} [%(levelname)s] - %(message)s',
          'datefmt': '%d-%m-%Y %H:%M:%S'
      },
  },
  'handlers': {
      'console': {
          'level': 'INFO',
          'class': 'logging.StreamHandler',
          'formatter': 'standard',
      }
  },
  'loggers': {
      '': {
          'handlers': ['console', handler], # this doesnt work
          'level': 'DEBUG',
          'propagate': True,
          # 'name': ENV
      }
  }
  }
  </code></pre>
  
  <p>What do I need to change so that django uses this custom handler? I tried just referencing the handler object in the logging dict but that didn't need to be the right approach. </p>
  
  <p>I also tried this:</p>
  
  <pre><code>LOGGING_CONFIG = None
  logging.config.dictConfig(LOGGING)
  logging.getLogger(__name__).addHandler(handler)
  </code></pre>
  
  <p>but that's not sending any logs to loki</p>