Serilog.Sinks.SpectreConsole
Serilog.Sinks.SpectreConsole copied to clipboard
Markup does not work
Markup doesn't work when trying to log messages.
Log.Logger <-
LoggerConfiguration()
.WriteTo.spectreConsole("{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}", LogEventLevel.Information)
.MinimumLevel.Information()
.CreateLogger()
Log.Information("Information level example with {0}", "parameter")
Log.Information("[underline]Test[/]")
13:11:01 [INFO] Information level example with parameter
13:11:01 [INFO] [underline]Test[/]
Did I forget to configure something or is this working as intended?
@Yaroshvitaliy maybe you can assist with this if it's something trivial
@yigitl SpectreConsoleTextFormatter.textRenderer does not use any markup and renders a text as is: https://github.com/PragmaticFlow/Serilog.Sinks.SpectreConsole/blob/main/src/Serilog.Sinks.SpectreConsole/SpectreConsoleTextFormatter.fs#L37
Any reviewer for #9 ?