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

.NET Standard 2.1

Version Downloads Last updated
1.3.0 7 10/23/2024
1.2.0 48 07/10/2024
1.1.0 7 07/22/2024
1.0.5 7 07/22/2024