title: Log log4net numeric level value
body: <p>I would like to log the numeric value corresponding to the log level when using log4net. That is, right now I am logging to database with the following command text:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;commandText value="INSERT INTO Log ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)" /&gt;
  
     &lt;parameter&gt;
      &lt;parameterName value="@log_level" /&gt;
      &lt;dbType value="String" /&gt;
      &lt;size value="50" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%level" /&gt;
      &lt;/layout&gt;
    &lt;/parameter&gt;
  </code></pre>
  
  <p>I would like to change the string value of the logging level to the numeric. Is this possible?</p>