MasterX.Logging.Serilog
3.1.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MasterX.Logging.Serilog --version 3.1.0
NuGet\Install-Package MasterX.Logging.Serilog -Version 3.1.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="MasterX.Logging.Serilog" Version="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MasterX.Logging.Serilog" Version="3.1.0" />
<PackageReference Include="MasterX.Logging.Serilog" />
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.Serilog --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MasterX.Logging.Serilog, 3.1.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 MasterX.Logging.Serilog@3.1.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=MasterX.Logging.Serilog&version=3.1.0
#tool nuget:?package=MasterX.Logging.Serilog&version=3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MasterX.Logging.Serilog
Serilog integration for Microsoft.Extensions.Logging, including configuration-based sinks and enrichers.
Direct registration
using MasterX.Logging.Serilog.DependencyInjection;
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.Logging.AddMasterXSerilog(builder.Configuration, builder.Environment.EnvironmentName);
Set MasterX:Logging:FileName to the Serilog configuration file. The integration loads the matching environment-specific file when available, such as serilog.Development.json.
{
"MasterX": {
"Logging": {
"Enabled": true,
"Provider": "Serilog",
"FileName": "serilog.json"
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information"
},
"WriteTo": [
{ "Name": "Console" }
]
}
}
The provider can also be selected by MasterX.Logging or registered through the MasterX.Framework orchestrator.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- MasterX.Logging.Abstractions (>= 3.1.0)
- Microsoft.Data.SqlClient (>= 8.0.0-preview1.26313.4)
- Microsoft.Extensions.Caching.Memory (>= 11.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 11.0.0)
- Microsoft.Extensions.Configuration.Json (>= 11.0.0)
- Microsoft.Extensions.Hosting (>= 11.0.0)
- Microsoft.Extensions.Logging (>= 11.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 11.0.0)
- Microsoft.Extensions.Logging.Console (>= 11.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- Microsoft.Net.Http.Headers (>= 11.0.0)
- Newtonsoft.Json (>= 14.0.1-beta2)
- Serilog (>= 4.4.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.ApplicationName (>= 0.1.0-rc0000)
- Serilog.Enrichers.AssemblyName (>= 2.0.0)
- Serilog.Enrichers.ClientInfo (>= 3.0.0)
- Serilog.Enrichers.Context (>= 4.6.5)
- Serilog.Enrichers.CorrelationId (>= 3.0.1)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.HttpHeader (>= 1.0.0)
- Serilog.Enrichers.Memory (>= 1.0.4)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.RequestUserId (>= 2.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Expressions (>= 5.0.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Extensions.Logging (>= 10.0.0)
- Serilog.Settings.Configuration (>= 10.0.1)
- Serilog.Sinks.Async (>= 2.1.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.Debug (>= 3.0.0)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.MSSqlServer (>= 10.0.0)
- System.Configuration.ConfigurationManager (>= 11.0.0)
- System.Security.Cryptography.Pkcs (>= 11.0.0)
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 |
|---|---|---|
| 3.1.1-preview.797 | 2 | 11/20/2026 |
| 3.1.0 | 50 | 11/18/2026 |
| 3.1.0-preview.793 | 41 | 11/19/2026 |
| 3.1.0-preview.789 | 47 | 11/17/2026 |
| 3.1.0-preview.782 | 42 | 11/17/2026 |
| 3.0.9-preview.774 | 60 | 11/10/2026 |
| 3.0.9-preview.772 | 62 | 11/10/2026 |
| 3.0.8 | 109 | 11/9/2026 |
| 3.0.8-preview.767 | 62 | 11/9/2026 |
| 3.0.8-preview.765 | 63 | 11/9/2026 |
| 3.0.8-preview.763 | 64 | 11/9/2026 |
| 3.0.8-preview.761 | 64 | 11/8/2026 |
| 3.0.7-preview.759 | 68 | 11/7/2026 |
| 3.0.7-preview.757 | 67 | 11/6/2026 |
| 3.0.7-preview.755 | 66 | 11/6/2026 |
| 3.0.7-preview.753 | 64 | 11/6/2026 |
| 3.0.7-preview.750 | 65 | 11/6/2026 |
| 3.0.6 | 126 | 11/6/2026 |
| 3.0.6-preview.748 | 72 | 11/6/2026 |
| 3.0.6-preview.745 | 72 | 11/6/2026 |
Loading failed