diff --git a/src/ZeroLog/Appenders/ConsoleAppender.cs b/src/ZeroLog/Appenders/ConsoleAppender.cs index aabe0664..d5799496 100644 --- a/src/ZeroLog/Appenders/ConsoleAppender.cs +++ b/src/ZeroLog/Appenders/ConsoleAppender.cs @@ -10,13 +10,13 @@ public class ConsoleAppender : AppenderBase 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); }