Serilog.Enrichers.WithCaller 1.3.0

dotnet add package Serilog.Enrichers.WithCaller --version 1.3.0                
NuGet\Install-Package Serilog.Enrichers.WithCaller -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Enrichers.WithCaller" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Enrichers.WithCaller --version 1.3.0                
#r "nuget: Serilog.Enrichers.WithCaller, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Enrichers.WithCaller as a Cake Addin
#addin nuget:?package=Serilog.Enrichers.WithCaller&version=1.3.0

// Install Serilog.Enrichers.WithCaller as a Cake Tool
#tool nuget:?package=Serilog.Enrichers.WithCaller&version=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: [{Timestamp:HH:mm:ss} {Level:u3}] {Message} (at {Caller}){NewLine}{Exception}

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 {Timestamp:HH:mm:ss.fff} {Level:u3} [{CallerType}.{CallerMethod}({CallerParameters}) {CallerFileName}:{CallerLineNo}] {Message:lj}{NewLine}{Exception}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Serilog.Enrichers.WithCaller:

Package Downloads
antaeus.core.framework

Package Description

BitMono.Shared

Package Description

eyesonit.csharp.sdk

The C# SDK for EyesOnIt. EyesOnIt is a computer vision product based on a Large Vision Model. The EyesOnIt model was trained on 2 billion images. It detects thousands of types of objects and events based on natural language descriptions. Using this SDK, EyesOnIt can be easily integrated into existing products or projects by those without advanced computer vision or data science skills. EyesOnIt is container based software that can easily be deployed at the edge, on-premises or in cloud environments.

RSSFeedifyCommon

RSSFeedifyCommon is a shared library designed for use across various projects within the RSSFeedify ecosystem. It includes utility logging service, a result handling type, and data models to streamline common functionalities.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Serilog.Enrichers.WithCaller:

Repository Stars
sunnamed434/BitMono
Obfuscator for .NET and Mono, with a customizable engine for building your own obfuscators.
Version Downloads Last updated
1.3.0 2,326 10/11/2024
1.2.0 129,044 2/1/2022
1.1.0 4,228 10/25/2021

Add option to include file information in the caller property (#1)