Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Failed reading from appsetting config #38

Open
rsuharta opened this issue May 8, 2017 · 1 comment
Open

Failed reading from appsetting config #38

rsuharta opened this issue May 8, 2017 · 1 comment

Comments

@rsuharta
Copy link

rsuharta commented May 8, 2017

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

@rsuharta rsuharta changed the title Failing reading from appsetting config Failed reading from appsetting config May 8, 2017
@marchicman
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants