Skip to content

Commit

Permalink
added support for netstandard2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-merkle committed Apr 28, 2020
1 parent 9931c84 commit affe145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFrameworks>netstandard2.1;netstandard2.0;</TargetFrameworks>
<Authors>Jonas Merkle [JJM]</Authors>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<RepositoryType>GitHub</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public static List<SlackAttachment> GenerateSlackMessageAttachments(LogEvent log
var stringWriter = new StringWriter();

// collect all log event information
foreach (var (key, value) in logEvent.Properties)
foreach (var property in logEvent.Properties)
{
value.Render(stringWriter, formatProvider: formatProvider);
property.Value.Render(stringWriter, formatProvider: formatProvider);
var field = new SlackField
{
Short = slackSinkOptions.SlackDisplayExtendedInfoAttachmentShort,
Title = key,
Title = property.Key,
Value = stringWriter.ToString()
};
infoFields.Add(field);
Expand Down

0 comments on commit affe145

Please sign in to comment.