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

Commit 7de76d7

Browse files
SirSevenmivano
authored andcommitted
Updated README.md (#279)
Documentation was describing a configuration value that was not used by the application. Which caused a unwanted behaviour. According to https://github.com/serilog/serilog-sinks-elasticsearch/blob/dev/src/Serilog.Sinks.Elasticsearch/LoggerConfigurationElasticSearchExtensions.cs#L96 and my tests the correct value is `restrictedToMinimumLevel`.
1 parent f8bfaf8 commit 7de76d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This example shows the options that are currently available when using the appSe
6161
<add key="serilog:write-to:Elasticsearch.batchPostingLimit" value="50"/>
6262
<add key="serilog:write-to:Elasticsearch.period" value="2"/>
6363
<add key="serilog:write-to:Elasticsearch.inlineFields" value="true"/>
64-
<add key="serilog:write-to:Elasticsearch.minimumLogEventLevel" value="Warning"/>
64+
<add key="serilog:write-to:Elasticsearch.restrictedToMinimumLevel" value="Warning"/>
6565
<add key="serilog:write-to:Elasticsearch.bufferBaseFilename" value="C:\Temp\SerilogElasticBuffer"/>
6666
<add key="serilog:write-to:Elasticsearch.bufferFileSizeLimitBytes" value="5242880"/>
6767
<add key="serilog:write-to:Elasticsearch.bufferLogShippingInterval" value="5000"/>
@@ -180,7 +180,7 @@ In your `appsettings.json` file, under the `Serilog` node, :
180180
"batchPostingLimit": 50,
181181
"period": 2000,
182182
"inlineFields": true,
183-
"minimumLogEventLevel": "Warning",
183+
"restrictedToMinimumLevel": "Warning",
184184
"bufferBaseFilename": "C:/Temp/LogDigipolis/docker-elk-serilog-web-buffer",
185185
"bufferFileSizeLimitBytes": 5242880,
186186
"bufferLogShippingInterval": 5000,

0 commit comments

Comments
 (0)