title: asp.net core - Set Serilog.Exceptions from appsettings.json
body: <p>I need to use Serilog.Exceptions package to catch exceptions.
  Serilog is read from appsettings.json</p>
  
  <pre><code>{
      "Serilog": {
          "Using": [
              "Serilog.Sinks.RollingFile",
              "Serilog.Sinks.Seq"
          ],
          "WriteTo": [
              {
                  "Name": "RollingFile",
                  "Args": {
                      "restrictedToMinimumLevel": "Debug",
                      "pathFormat": "myPath\\log-{Date}.log"
                  }
              },
              {
                  "Name": "RollingFile",
                  "Args": {
                      "restrictedToMinimumLevel": "Error",
                      "pathFormat": "myPath\\error-{Date}.log"
                  }
              },
              {
                  "Name": "Seq",
                  "Args": {
                      "serverUrl": "myUrl",
                      "apiKey": "myApiKey"
                  }
              }
          ],
          "Enrich": [
              "FromLogContext",
              "WithMachineName",
              "WithThreadId"
          ],
          "Properties": {
              "Application": "myApplicationName"
          }
      }
  }
  </code></pre>
  
  <p>And in my <strong>startup.cs</strong></p>
  
  <pre><code>var logger = new LoggerConfiguration()
      .Enrich.WithExceptionDetails()
      .ReadFrom.Configuration(Configuration)
      .CreateLogger();
  
  Log.Logger = logger;
  </code></pre>
  
  <p>But it doesn't work. Do I need to add some other properties in appsettings.json for Serilog.Exceptions package? Or is the appsettings.json configure correctly? What am I doing wrong?
  Thanks</p>