title: Sometimes NLog.Extensions.AzureTableStorage returning bad request
body: <p>I am using the <strong>azure table and NLog (NLog.Extensions.AzureTableStorage)</strong> to write SQL audit logs,
  which is done by creating a <strong>database interceptor in Entity framework</strong> and it's working perfectly most of the time, but sometimes I am getting a bad request which can be observed from the application insights.</p>
  
  <p>Below is the code used to write the Log</p>
  
  <pre><code>public class DBCommandInterceptor : DbCommandInterceptor
      {
  
          private readonly Logger _logger = LogManager.GetLogger("SQLAuditLog");
  
          public override void NonQueryExecuting(DbCommand command, DbCommandInterceptionContext&lt;int&gt; interceptionContext)
          {
              HandleCommandExecuting(command);
          }
  
          public override void ReaderExecuting(DbCommand command, DbCommandInterceptionContext&lt;DbDataReader&gt; interceptionContext)
          {
              HandleCommandExecuting(command);
          }
  
          public override void ScalarExecuting(DbCommand command, DbCommandInterceptionContext&lt;object&gt; interceptionContext)
          {
              HandleCommandExecuting(command);
          }
  
          private void HandleCommandExecuting(DbCommand command)
          {           
              LogEventInfo eventLog = new LogEventInfo(LogLevel.Trace,_logger.Name, command.CommandText);
              eventLog.Properties["Query"] = command.CommandText;
              eventLog.Message = $"{ command.CommandText} ";
              _logger.Log(eventLog);
  
          }
      }
  </code></pre>
  
  <p>What would be the reason for the bad request error?</p>