FluentLoggerExtensions 1.7.0

dotnet add package FluentLoggerExtensions --version 1.7.0
                    
NuGet\Install-Package FluentLoggerExtensions -Version 1.7.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="FluentLoggerExtensions" Version="1.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentLoggerExtensions" Version="1.7.0" />
                    
Directory.Packages.props
<PackageReference Include="FluentLoggerExtensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluentLoggerExtensions --version 1.7.0
                    
#r "nuget: FluentLoggerExtensions, 1.7.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.
#:package FluentLoggerExtensions@1.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluentLoggerExtensions&version=1.7.0
                    
Install as a Cake Addin
#tool nuget:?package=FluentLoggerExtensions&version=1.7.0
                    
Install as a Cake Tool

FluentLoggerExtensions

Fluent extensions for Microsoft.Extensions.Logging that capture caller file, member, and line information and prepend it to your log messages.

NuGet NuGet Downloads License: MIT

Install

  • From NuGet: dotnet add package FluentLoggerExtensions
  • Or reference the project directly in your solution.

Usage

using FluentLogger;
using Microsoft.Extensions.Logging;

var logger = loggerFactory.CreateLogger<Program>();

logger.WithCaller().LogInformation("Processing {RequestId}", requestId);
// Logs something like: [Program.cs:Main:42] Processing 12345

logger.WithCaller().LogError("Failed to process {RequestId}: {Reason}", requestId, reason);

API

  • ILogger.WithCaller([CallerFilePath] file, [CallerMemberName] member, [CallerLineNumber] line) returns a CallerLogContext with captured caller info.
  • CallerLogContext.LogInformation|LogWarning|LogError|LogDebug log with a [{File}:{Member}:{Line}] prefix while preserving structured logging args.

Requirements

  • Target framework: netstandard2.0
  • Dependency: Microsoft.Extensions.Logging.Abstractions (8.0.0)

Development

  • Build: dotnet build (the project is configured to generate a NuGet package and symbols on build).

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.0 121 2/26/2026
1.6.0 118 2/24/2026
1.4.0 362 12/15/2025
1.3.1-alpha.0.1 224 12/15/2025
1.3.0 151 12/11/2025
1.2.0 439 12/11/2025
1.1.0 553 12/11/2025
1.0.0 434 12/11/2025