title: How To Get Log Level in Json with Serilog - .NET Core 3.1
body: <p>I am new to <code>Serilog</code> and I am trying to determine how to send a serialized <code>json</code> to the <code>console</code> with a <code>log level</code> and <code>date time</code> field. There doesn't seem to be any info in the docs under <code>structured data</code>. </p>
  
  <p>Here is my code that is called in the <code>Startup.cs</code>:</p>
  
  <pre><code>private void LoggerLoop(ILogger&lt;Startup&gt; logger)
  {
      RabbitModel rb = new RabbitModel
      {
          Id = 1,
          DeviceNum = 1,
          DeviceName = "Device 1",
          InputNum = 1,
          InputName = "Input 1",
          InputState = 1,
          OnPhrase = "On",
          OffPhrase = "Off",
          When = "2020-01-01T22:45:00.1124303+00:00"
      };
  
      while (true)
      {
          logger.LogInformation("{@rb}", rb);
          Thread.Sleep(1000);
      }
  }
  </code></pre>
  
  <p>And here is my output:</p>
  
  <p><code>[14:28:22 INF] {"Id": 1, "DeviceNum": 1, "DeviceName": "Device 1", "InputNum": 1, "InputName": "Input 1", "InputState": 1, "OnPhrase": "On", "OffPhrase": "Off", "When": "2020-01-01T22:45:00.1124303+00:00", "$type": "RabbitModel"}</code></p>
  
  <p>I did notice that its added a field <code>$type</code> and wondered if this is possible for the <code>[14:28:22 INF]</code> to be added to the <code>json</code>?</p>