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

No way to use placeholders in EPi serilog #4

Open
breno601 opened this issue May 31, 2019 · 0 comments
Open

No way to use placeholders in EPi serilog #4

breno601 opened this issue May 31, 2019 · 0 comments

Comments

@breno601
Copy link

breno601 commented May 31, 2019

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.

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

No branches or pull requests

1 participant