Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markup does not work #8

Open
yigitl opened this issue Jan 17, 2022 · 3 comments
Open

Markup does not work #8

yigitl opened this issue Jan 17, 2022 · 3 comments

Comments

@yigitl
Copy link

yigitl commented Jan 17, 2022

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?

@yigitl yigitl changed the title Getting markup working Markup does not work Jan 17, 2022
@AntyaDev
Copy link
Contributor

@Yaroshvitaliy maybe you can assist with this if it's something trivial

@Yaroshvitaliy
Copy link
Contributor

@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

dgosbell added a commit to dgosbell/Serilog.Sinks.SpectreConsole that referenced this issue Oct 3, 2022
@shackerd
Copy link

Any reviewer for #9 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants