MasterX.Logging.NLog 3.0.9-preview.772

This is a prerelease version of MasterX.Logging.NLog.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MasterX.Logging.NLog --version 3.0.9-preview.772
                    
NuGet\Install-Package MasterX.Logging.NLog -Version 3.0.9-preview.772
                    
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="MasterX.Logging.NLog" Version="3.0.9-preview.772" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MasterX.Logging.NLog" Version="3.0.9-preview.772" />
                    
Directory.Packages.props
<PackageReference Include="MasterX.Logging.NLog" />
                    
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 MasterX.Logging.NLog --version 3.0.9-preview.772
                    
#r "nuget: MasterX.Logging.NLog, 3.0.9-preview.772"
                    
#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 MasterX.Logging.NLog@3.0.9-preview.772
                    
#: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=MasterX.Logging.NLog&version=3.0.9-preview.772&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MasterX.Logging.NLog&version=3.0.9-preview.772&prerelease
                    
Install as a Cake Tool

MasterX.Logging.NLog

NLog integration for Microsoft.Extensions.Logging in MasterX applications. It can load nlog.config and an environment-specific variant such as nlog.Development.config.

Direct registration

using MasterX.Logging.NLog.DependencyInjection;

WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.Logging.AddMasterXNLog(builder.Configuration, builder.Environment.EnvironmentName);

Set MasterX:Logging:FileName to the NLog configuration file. Add NLogProviderOptions to bind provider settings:

{
  "MasterX": {
    "Logging": {
      "Enabled": true,
      "Provider": "NLog",
      "FileName": "nlog.config"
    }
  },
  "NLogProviderOptions": {
    "IncludeScopes": true,
    "CaptureMessageTemplates": true,
    "CaptureMessageProperties": true
  }
}

The package can also be selected by setting MasterX:Logging:Provider to NLog and registering MasterX.Logging.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MasterX.Logging.NLog:

Package Downloads
MasterX.Logging

Configuration-driven logging provider orchestration for MasterX applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.9-preview.774 0 11/10/2026
3.0.9-preview.772 0 11/10/2026
3.0.8 38 11/9/2026
3.0.8-preview.767 39 11/9/2026
3.0.8-preview.765 34 11/9/2026
3.0.8-preview.763 37 11/9/2026
3.0.8-preview.761 43 11/8/2026
3.0.7-preview.759 48 11/7/2026
3.0.7-preview.757 46 11/6/2026
3.0.7-preview.755 44 11/6/2026
3.0.7-preview.753 48 11/6/2026
3.0.7-preview.750 50 11/6/2026
3.0.6 63 11/6/2026
3.0.6-preview.748 56 11/6/2026
3.0.6-preview.745 54 11/6/2026
3.0.6-preview.741 53 11/5/2026
3.0.5 89 11/4/2026
3.0.5-preview.730 58 11/4/2026
3.0.4 129 10/19/2026
3.0.4-preview.721 66 10/30/2026
Loading failed