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

Commit 0898da1

Browse files
committed
Some small refactorings
1 parent 9b8ca86 commit 0898da1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Serilog.Formatting.Elasticsearch/ElasticsearchJsonFormatter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ protected override void WriteJsonProperty(string name, object value, ref string
135135
/// </summary>
136136
protected virtual ScalarValue DotEscapeFieldName(ScalarValue value)
137137
{
138-
var s = value.Value as string;
139-
return s != null ? new ScalarValue(DotEscapeFieldName(s)) : value;
138+
return value.Value is string s ? new ScalarValue(DotEscapeFieldName(s)) : value;
140139
}
141140

142141
/// <summary>

src/Serilog.Formatting.Elasticsearch/Serilog.Formatting.ElasticSearch.Symbols.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<id>Serilog.Formatting.Elasticsearch</id>
55
<version>$version$</version>
66
<authors>Michiel van Oudheusden, Martijn Laarman, Mogens Heller Grabe</authors>
7-
<description>The perfect way for .NET apps formatting structured log events to Elasticsearch JSON.</description>
7+
<description>The perfect way for .NET apps formatting structured log events to Elasticsearch JSON. This package contains the formatter used for the Elasticsearch Sink.</description>
88
<language>en-US</language>
99
<projectUrl>http://serilog.net</projectUrl>
1010
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>

src/Serilog.Formatting.Elasticsearch/Serilog.Formatting.ElasticSearch.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<id>Serilog.Formatting.Elasticsearch</id>
55
<version>$version$</version>
66
<authors>Michiel van Oudheusden, Martijn Laarman, Mogens Heller Grabe, Konstantin Erman</authors>
7-
<description>The perfect way for .NET apps formatting structured log events to Elasticsearch JSON.</description>
7+
<description>The perfect way for .NET apps formatting structured log events to Elasticsearch JSON. This package contains the formatter used for the Elasticsearch Sink.</description>
88
<language>en-US</language>
99
<projectUrl>http://serilog.net</projectUrl>
1010
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
1111
<iconUrl>http://serilog.net/images/serilog-sink-nuget.png</iconUrl>
1212
<repository type="git" url="https://github.com/serilog/serilog-sinks-elasticsearch" />
13-
<tags>serilog logging elasticsearch</tags>
13+
<tags>serilog logging elasticsearch formatters</tags>
1414
<dependencies>
1515
<dependency id="Serilog" version="2.6.0" />
1616
<dependency id="Elasticsearch.Net" version="6.0.0" />

0 commit comments

Comments
 (0)