Elastic.Extensions.Logging - customization

Hi all,

I'm working on a .NETlogger that logs directly to Elasticsearch. I looked at the source code for Elastic.Extensions.Logging and I cannot find any "customization" options.

Examples:

  1. How can we change the user name? Currently the name is obtained from Thread.CurrentPrincipal?.Identity?.Name. This is not always correct. Sometimes ClaimsPrincipal needs to be used.
  2. How can we add other attributes (not via the message template)?

Any information very welcome.

Peter