BedeGaming / sinks-rollingfile

A serilog sink for rolling files based on size and time
Apache License 2.0
15 stars 21 forks source link

Failed reading from appsetting config #38

Open rsuharta opened 7 years ago

rsuharta commented 7 years ago

The following setting has failed loading the SafeAggregateSink with following config file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
  <appSettings>
      <add key="serilog:using:RollingFileAlternate" value="Serilog.Sinks.RollingFileAlternate" />
      <add key="serilog:write-to:RollingFileAlternate.logsDirectory" value=".\logs" />
      <add key="serilog:write-to:RollingFileAlternate.fileSizeLimitBytes" value="128" />
    </appSettings>
</configuration>

image

marchicman commented 6 years ago

The problem is in the second key is not logsDirectory but logDirectory without s