![]() |
VOOZH | about |
dotnet add package Common.Logging.Serilog --version 5.1.0
NuGet\Install-Package Common.Logging.Serilog -Version 5.1.0
<PackageReference Include="Common.Logging.Serilog" Version="5.1.0" />
<PackageVersion Include="Common.Logging.Serilog" Version="5.1.0" />Directory.Packages.props
<PackageReference Include="Common.Logging.Serilog" />Project file
paket add Common.Logging.Serilog --version 5.1.0
#r "nuget: Common.Logging.Serilog, 5.1.0"
#:package Common.Logging.Serilog@5.1.0
#addin nuget:?package=Common.Logging.Serilog&version=5.1.0Install as a Cake Addin
#tool nuget:?package=Common.Logging.Serilog&version=5.1.0Install as a Cake Tool
👁 NuGet version
👁 Build and Push to Nuget
Common.Logging.Serilog is an adapter that bridges the Common.Logging abstraction with Serilog, allowing you to use Serilog as the underlying logging framework in applications that rely on Common.Logging.
Install the package via NuGet Package Manager:
Install-Package Common.Logging.Serilog
Or using the .NET CLI:
dotnet add package Common.Logging.Serilog
Update your app.config or web.config file to use the Serilog factory adapter:
<configuration>
<configSections>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Serilog.SerilogFactoryAdapter, Common.Logging.Serilog" />
</logging>
</common>
</configuration>
Configure Serilog and assign it to the global Log.Logger instance:
using Serilog;
using Common.Logging;
class Program
{
static void Main(string[] args)
{
// Configure Serilog: -- Must set global Log.Logger instance
Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.CreateLogger();
// Obtain a Common.Logging logger
var logger = LogManager.GetLogger<Program>();
logger.Info("Application has started.");
// Your application code here
// Ensure to flush and close Serilog at the end
Log.CloseAndFlush();
}
}
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Common.Logging.Serilog:
| Package | Downloads |
|---|---|
|
Texnomic.SecureDNS.Core
Texnomic SecureDNS Core Library. |
Showing the top 2 popular GitHub repositories that depend on Common.Logging.Serilog:
| Repository | Stars |
|---|---|
|
Texnomic/SecureDNS
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 10
|
|
|
mellowagain/Titan
A free, advanced CS:GO report and commendation bot built with performance and ease-of-use in mind
|
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0 | 91,818 | 3/29/2025 |
| 5.0.1 | 98,490 | 9/20/2024 |
| 5.0.0 | 23,113 | 9/20/2024 |
| 4.4.0 | 3,573,981 | 4/1/2020 |
| 4.3.6 | 492,974 | 3/22/2018 |
| 4.3.4 | 30,638 | 3/4/2018 |
| 4.3.0 | 63,843 | 8/9/2017 |
| 4.1.11 | 115,052 | 2/6/2017 |
| 4.1.9 | 24,702 | 2/1/2017 |
| 4.1.2 | 36,713 | 7/11/2016 |
| 4.1.1 | 24,845 | 7/8/2016 |
| 3.1.6 | 27,231 | 5/9/2016 |
| 3.1.5 | 31,441 | 9/9/2015 |
| 3.1.3 | 24,478 | 9/9/2015 |
| 3.1.1 | 30,785 | 4/11/2015 |
| 3.0.1 | 24,981 | 1/13/2015 |
| 2.3.6 | 24,656 | 1/8/2015 |
| 2.3.5 | 24,452 | 1/8/2015 |
| 2.2.5 | 27,037 | 11/24/2014 |
| 2.1.0 | 26,782 | 10/1/2014 |
v5.1.0 - Targetting .NET 4.6.2. Using Version instead of PackageVersion so assembly version matches.