Closed grounzero closed 2 years ago
If I call AllocConsole
in Program.cs it works as expected regardless of whether I set applyThemeToRedirectedOutput
to true
or false
Hi! The console needs to be allocated before this is called:
You can work around it by using a non-ANSI theme, e.g. SystemConsoleTheme.*
. HTH!
Serilog.Sinks.Console 4.0.0 net5.0-windows
When creating a console in a net5 winforms app using DllImport, and setting
applyThemeToRedirectedOutput: true
, instead of a coloured console it outputs something this like this before each log.Is there a workaround?