Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

No way to use placeholders in EPi serilog #4

@breno601

Description

@breno601

Hi,

I tried today to use log with placeholders (or structured logging as well) in EpiServer Serilog and I figured it doesn't support it. Sorry if I am posting this in the wrong place, but I was wondering if there's anything to make it support placeholders. I need it for having new fields in the json which is generated and sent to logstash/kibana.

By placeholders I mean something like this:


string test = "message";
logger.Information("{test}", message);

There's no Information (or Error, Debug) method accepting this kind of property.

Thanks in advance and sorry if I'm posting this in the incorrect place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions