Skip to content

Commit

Permalink
Add a constructor in BasicResolver for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Dec 6, 2018
1 parent 5856439 commit 5f36a37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.3.0</Version>
<Version>1.3.1</Version>
<Description>A zero-allocation .NET logging library</Description>
<Authors>Reda Bouallou;Mendel Monteiro-Beckerman;Romain Verdier;Lucas Trzesniewski</Authors>
<PackageProjectUrl>https://github.com/Abc-Arbitrage/ZeroLog</PackageProjectUrl>
Expand Down
7 changes: 7 additions & 0 deletions src/ZeroLog/ConfigResolvers/BasicResolver.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using ZeroLog.Appenders;
Expand All @@ -13,6 +14,12 @@ public class BasicResolver : IConfigurationResolver
private readonly LogEventPoolExhaustionStrategy _logEventPoolExhaustionStrategy;
private readonly LogEventArgumentExhaustionStrategy _logEventArgumentExhaustionStrategy;

[SuppressMessage("ReSharper", "IntroduceOptionalParameters.Global", Justification = "For compatibility")]
public BasicResolver(IEnumerable<IAppender> appenders, Level level, LogEventPoolExhaustionStrategy logEventPoolExhaustionStrategy)
: this(appenders, level, logEventPoolExhaustionStrategy, LogEventArgumentExhaustionStrategy.Default)
{
}

public BasicResolver(IEnumerable<IAppender> appenders, Level level, LogEventPoolExhaustionStrategy logEventPoolExhaustionStrategy, LogEventArgumentExhaustionStrategy logEventArgumentExhaustionStrategy)
{
_level = level;
Expand Down

0 comments on commit 5f36a37

Please sign in to comment.