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

Correct logDirectory setting name in documentation #45

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ In your application's `App.config` or `Web.config` file, specify the rolling fil
<configuration>
<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.logDirectory" value=".\logs" />
<add key="serilog:write-to:RollingFileAlternate.fileSizeLimitBytes" value="1048576" />
```

Expand All @@ -71,7 +71,7 @@ The parameters that can be set through the `serilog:write-to:RollingFileAlternat
In XML and JSON configuration formats, environment variables can be used in setting values. This means, for instance, that the log folder path can be based on `TMP` or `APPDATA`:

```xml
<add key="serilog:write-to:RollingFileALternate.logsFolder" value="%APPDATA%\MyApp\logs" />
<add key="serilog:write-to:RollingFileALternate.logDirectory" value="%APPDATA%\MyApp\logs" />
```

### JSON `appsettings.json` configuration
Expand Down