title: Custom log level not working with structlog
body: <p>I am working with python custom log - TRACE is custom log level in below code.</p>
  
  <p>With default logger, its working fine</p>
  
  <p>But when I change it for structlog it is giving error.</p>
  
  <p>structlog not able to identify TRACE in below code. </p>
  
  <p>It seems that structlog doesn't support custom log levels ?</p>
  
  <p>Already tried workaround mentioned <a href="https://github.com/hynek/structlog/issues/47" rel="nofollow noreferrer">https://github.com/hynek/structlog/issues/47</a></p>
  
  <p>i.e</p>
  
  <pre><code>    structlog.stdlib.TRACE = TRACE = 5
      structlog.stdlib._NAME_TO_LEVEL['trace'] = TRACE
  </code></pre>
  
  <p>But it is not working</p>
  
  <pre><code>    TRACE = 19
  
  
      logging.addLevelName(TRACE, "TRACE")
  
      logging.basicConfig(
          level=os.environ.get("LOGLEVEL", "TRACE"),
          format=os.environ.get("LOGFORMAT", '%(levelname)-8s= %(asctime)-15s = %(message)s'))
  
  
  
      structlog.configure(
          processors=[
              structlog.stdlib.filter_by_level,
              structlog.stdlib.add_logger_name,
              structlog.stdlib.add_log_level,
              structlog.stdlib.PositionalArgumentsFormatter(),
              structlog.processors.StackInfoRenderer(),
              structlog.processors.format_exc_info,
              structlog.processors.UnicodeDecoder(),
              structlog.stdlib.render_to_log_kwargs,
          ],
          context_class=dict,
          logger_factory=structlog.stdlib.LoggerFactory(),
          wrapper_class=structlog.stdlib.BoundLogger,
          cache_logger_on_first_use=True,
      )
  
  
  
  
      #LOG = logging.getLogger() -&gt;&gt; Working fine
      LOG = structlog.getLogger()
  
  
  
      LOG.log(TRACE, "hello") -&gt;&gt; error on this line
      LOG.info("testing")
  </code></pre>