Thank you spending time on my problem.
When adding "Elastic": "Trace" in this section , I get the following exception on CreateLogger() call
An unhandled exception of type 'System.InvalidOperationException' occurred in Serilog.Settings.Configuration.dll: 'No LoggingLevelSwitch has been declared with name "Trace". You might be missing a section "LevelSwitches":{"Trace":"InitialLevel"}'
Stack trace:
> at Serilog.Settings.Configuration.ResolutionContext.LookUpSwitchByName(String switchName)
I'm pretty sure it's my APM that is misconfigured, could you provide a full working sample that I could test on my stack ?
Or do you have other ideas to solve this problem ?
Thank you