Skip to content

Commit

Permalink
Call configure in ConsoleAppender default constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MendelMonteiro committed Feb 25, 2020
1 parent 8b15217 commit ae30bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ZeroLog/Appenders/ConsoleAppender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class ConsoleAppender : AppenderBase<DefaultAppenderConfig>
private readonly Stream _output;

public ConsoleAppender()
: this(DefaultPrefixPattern)
{
_output = Console.OpenStandardOutput();
}

public ConsoleAppender(string prefixPattern = DefaultPrefixPattern)
: this()
public ConsoleAppender(string prefixPattern)
{
_output = Console.OpenStandardOutput();
Configure(prefixPattern);
}

Expand Down

0 comments on commit ae30bb6

Please sign in to comment.