Skip to content

Commit c3231ab

Browse files
matkochkhellang
authored andcommitted
Fix ExceptionTokenRenderer to WriteLine after reset sequence
1 parent 7ecfd08 commit c3231ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Serilog.Sinks.Console/Sinks/SystemConsole/Output/ExceptionTokenRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public override void Render(LogEvent logEvent, TextWriter output)
4444
var style = nextLine.StartsWith(StackFrameLinePrefix) ? ConsoleThemeStyle.SecondaryText : ConsoleThemeStyle.Text;
4545
var _ = 0;
4646
using (_theme.Apply(output, style, ref _))
47-
output.WriteLine(nextLine);
47+
output.Write(nextLine);
48+
output.WriteLine();
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)