Serilog.Enrichers.WithCaller 1.3.0
Serilog.Enrichers.WithCaller
** how to use, code example see unit test code **
Performance of this approach is low due to Reflection and Diagnostic. However, it's helpful if you need the method Parameters and Values in your log output.
Example OutputTemplate: [ ] (at )
Since version 1.1.0 (thanks to 0xced), supports including file info in caller property Since version 1.2.0 (thanks to Khaos66), supports adding max frame depth of stack Since version 1.3.0 (thanks to wexman), own output template definition possible, for example [.() :]
No packages depend on Serilog.Enrichers.WithCaller.
Add option to include file information in the caller property (#1)
.NET Standard 2.0
- Ben.Demystifier (>= 0.4.1)
- Serilog (>= 4.0.2)
.NET Standard 2.1
- Ben.Demystifier (>= 0.4.1)
- Serilog (>= 4.0.2)