Skip to content

Constructor parameter to JsonFormatter given from xml #47

Open
@Friendry

Description

@Friendry

Hello,
How can I add the 'renderedMessage = true' in the appsettings file for the JsonFormatter? In the code it's easy, but I haven't managed to do this in the appsettings. Normally the 'renderedMessage' is given to the constructor of the JsonFormatter. Is there a way to do this in the in the xml?

The config part of the file looks like this:

<add key="serilog:using:File" value="Serilog.Sinks.File" />
<add key="serilog:write-to:File.path" value="Logs/Log_.txt" />
<add key="serilog:write-to:File.shared" value="true" />
<add key="serilog:write-to:File.rollingInterval" value="Day" />
<add key="serilog:write-to:File.formatter" value="Serilog.Formatting.Json.JsonFormatter" />

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