title: NLog is not logging on Oracle database, Please how can I get it right
body: <p>I want to log into Oracle database table using NLog but nothing gets logged. Below is NLog.config file am using. Please what am I doing wrongly?</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;nlog xmlns=&quot;http://www.nlog-project.org/schemas/NLog.xsd&quot;    
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        autoReload=&quot;true&quot;
        throwConfigExceptions=&quot;true&quot;
        internalLogLevel=&quot;info&quot;
        internalLogFile=&quot;Logtxt.txt&quot;&gt;
    &lt;extensions&gt;
      &lt;add assembly=&quot;NLog.Web.AspNetCore&quot;/&gt;
    &lt;/extensions&gt;
    &lt;targets&gt;
      &lt;target name=&quot;database&quot; xsi:type=&quot;Database&quot; keepConnection=&quot;false&quot; useTransactions=&quot;true&quot;
          dbProvider=&quot;System.Data.OracleClient.OracleConnection,System.Data.OracleClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;
          connectionString=&quot;Data Source=#####;User ID=######;password=******;Integrated Security=no;&quot;
          commandText=&quot;insert into DBO_ERRORLOGS(LOGID,LEVEL,CALLSITE,TYPE,MESSAGE,STACKTRACE,INNEREXCEPTION,ADDITINALINFO,LOGGEDONDATE,USERNAME) values('',:LEVEL,:CALLSITE,:TYPE,:MESSAGE,:STACKTRACE,:INNEREXCEPTION,:ADDITIONALINFO,:DATE,:USERNAME)&quot;&gt;
          &lt;parameter name=&quot;LEVEL&quot; layout=&quot;${Level}&quot; /&gt;
          &lt;parameter name=&quot;CALLSITE&quot; layout=&quot;${Callsite}&quot; /&gt;
          &lt;parameter name=&quot;DATE&quot; layout=&quot;${date}&quot; /&gt;
          &lt;parameter name=&quot;TYPE&quot; layout=&quot;${exception:format=Type}&quot; /&gt;
          &lt;parameter name=&quot;MESSAGE&quot; layout=&quot;${exception:format=Message}&quot; /&gt;
          &lt;parameter name=&quot;STACKTRACE&quot; layout=&quot;${exception:format=StackTrace}&quot; /&gt;
          &lt;parameter name=&quot;INNEREXCEPTION&quot; layout=&quot;${exception:format=:innerFormat=ShortType,Message,Method:MaxInnerExceptionLevel=1:InnerExceptionSeparator=}&quot; /&gt;
          &lt;parameter name=&quot;ADDITIONALINFO&quot; layout=&quot;${Message}&quot; /&gt;
          &lt;parameter name=&quot;USERNAME&quot; layout=&quot;${identity}&quot; /&gt;
      &lt;/target&gt;
    &lt;/targets&gt;
    &lt;rules&gt;
        &lt;logger name=&quot;*&quot; minlevel=&quot;Debug&quot; writeTo=&quot;database&quot; /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>