diff --git a/.autover/changes/6b75589f-72e6-4973-b218-21136d118f5d.json b/.autover/changes/6b75589f-72e6-4973-b218-21136d118f5d.json new file mode 100644 index 0000000..b32dfdb --- /dev/null +++ b/.autover/changes/6b75589f-72e6-4973-b218-21136d118f5d.json @@ -0,0 +1,11 @@ +{ + "Projects": [ + { + "Name": "NLog.AWS.Logger", + "Type": "Major", + "ChangelogMessages": [ + "Updated to NLog v5.2.2 to support IsTrimmable = true" + ] + } + ] +} diff --git a/samples/NLog/ConfigExample/ConfigExample.csproj b/samples/NLog/ConfigExample/ConfigExample.csproj index 03bc225..14ebc83 100644 --- a/samples/NLog/ConfigExample/ConfigExample.csproj +++ b/samples/NLog/ConfigExample/ConfigExample.csproj @@ -7,10 +7,6 @@ Exe - - - - diff --git a/src/AWS.Logger.Core/AWS.Logger.Core.csproj b/src/AWS.Logger.Core/AWS.Logger.Core.csproj index fd2905d..403d3d7 100644 --- a/src/AWS.Logger.Core/AWS.Logger.Core.csproj +++ b/src/AWS.Logger.Core/AWS.Logger.Core.csproj @@ -1,4 +1,4 @@ - + net472;netstandard2.0;net8.0 diff --git a/src/NLog.AWS.Logger/AWSTarget.cs b/src/NLog.AWS.Logger/AWSTarget.cs index aea632f..2eaf877 100644 --- a/src/NLog.AWS.Logger/AWSTarget.cs +++ b/src/NLog.AWS.Logger/AWSTarget.cs @@ -29,7 +29,6 @@ public class AWSTarget : TargetWithLayout, IAWSLoggerConfig /// public AWSTarget() { - this.OptimizeBufferReuse = true; } /// diff --git a/src/NLog.AWS.Logger/NLog.AWS.Logger.csproj b/src/NLog.AWS.Logger/NLog.AWS.Logger.csproj index 9464930..8118ea9 100644 --- a/src/NLog.AWS.Logger/NLog.AWS.Logger.csproj +++ b/src/NLog.AWS.Logger/NLog.AWS.Logger.csproj @@ -1,4 +1,4 @@ - + net472;netstandard2.0;net8.0 @@ -26,7 +26,7 @@ true true snupkg - + 4.0.0 @@ -45,7 +45,7 @@ - + diff --git a/test/AWS.Logger.NLog.FilterTests/TestFilter.cs b/test/AWS.Logger.NLog.FilterTests/TestFilter.cs index 1e47133..122d0f2 100644 --- a/test/AWS.Logger.NLog.FilterTests/TestFilter.cs +++ b/test/AWS.Logger.NLog.FilterTests/TestFilter.cs @@ -1,7 +1,5 @@ using Xunit; using System; -using System.IO; -using System.Reflection; using System.Linq; using NLog.Config; using NLog; @@ -45,7 +43,8 @@ public void CustomFilter() var config = new LoggingConfiguration(); config.AddTarget("FakeAWSTarget", fakeawsTarget); - var rule = new LoggingRule("CustomFilter", LogLevel.Warn,LogLevel.Fatal, fakeawsTarget); + var rule = new LoggingRule("CustomFilter", LogLevel.Warn, LogLevel.Fatal, fakeawsTarget); + rule.FilterDefaultAction = FilterResult.Log; rule.Filters.Add(filter); config.LoggingRules.Add(rule);