Skip to content

Commit

Permalink
add AppColumnWriter for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hatami57 committed Oct 1, 2019
1 parent ce7fc1f commit 8622c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DDDCommon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Company>Meteor</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<LangVersion>latest</LangVersion>
<PackageVersion>1.2.8</PackageVersion>
<PackageVersion>1.2.9</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Utils/SerilogPostgreSqlSink/ColumnWriterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public AppColumnWriter(NpgsqlDbType dbType = NpgsqlDbType.Varchar) : base(dbType

public override object GetValue(LogEvent logEvent, IFormatProvider formatProvider = null)
{
if (!logEvent.Properties.TryGetValue("RequestId", out var value))
if (!logEvent.Properties.TryGetValue("App", out var value))
return null;

var str = value.ToString();
Expand Down

0 comments on commit 8622c47

Please sign in to comment.