Skip to content

Serilog console logging with JsonFromatter #225

@rajurh

Description

@rajurh

I have been trying to use Serilog Console logging with JsonFormatter. When I enable option for console logging in code with .NET core we have option with JsonFromatter to renderMessage= true in its constructor which helps to render message and template in a nicer way and working well.

When I try to define and make it work using appsetting.json configuration for console logging I dont see an option to define "renderMessage" = true due to which when it logs in console I am not getting rendered message.

"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"

As part of configuration setting if you could let me know how to enable render message option will be of great help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions