elastic / ecs-dotnet

https://www.elastic.co/guide/en/ecs-logging/dotnet/current/setup.html
Apache License 2.0
115 stars 58 forks source link

[QUESTION] - customization of Elastic.Extensions.Logging #412

Open PCDiver opened 2 months ago

PCDiver commented 2 months ago

Hi all,

I'm working on a logger for .NET6 (and .NET Standard 2.0) that logs directly to Elasticsearch. We currently use serilog, but I would like to reduce dependencies on other frameworks.

I looked at the source code for Elastic.Extensions.Logging and I cannot find any "customization" options. A lot of static methods, almost no overrides, no delegates to change LogEvents, ....

Here are some examples of logEvent manipulation that I was thinking of.:

All information and feedback very welcome.

Peter