Serilog.Sinks.EventLog 4.0.1-dev-00087

Prefix Reserved
This is a prerelease version of Serilog.Sinks.EventLog.
dotnet add package Serilog.Sinks.EventLog --version 4.0.1-dev-00087                
NuGet\Install-Package Serilog.Sinks.EventLog -Version 4.0.1-dev-00087                
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.Sinks.EventLog" Version="4.0.1-dev-00087" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.EventLog --version 4.0.1-dev-00087                
#r "nuget: Serilog.Sinks.EventLog, 4.0.1-dev-00087"                
#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.Sinks.EventLog as a Cake Addin
#addin nuget:?package=Serilog.Sinks.EventLog&version=4.0.1-dev-00087&prerelease

// Install Serilog.Sinks.EventLog as a Cake Tool
#tool nuget:?package=Serilog.Sinks.EventLog&version=4.0.1-dev-00087&prerelease                

Serilog.Sinks.EventLog

Build status NuGet Version

A Serilog sink that writes events to the Windows Event Log.

Important: version 3.0 of this sink changed the default value of manageEventSource from true to false. Applications that run with administrative privileges, and that can therefore create event sources on-the-fly, can opt in by providing manageEventSource: true as a configuration option.

Getting started

First, install the package from NuGet:

dotnet add package Serilog.Sinks.EventLog

The sink is configured by calling WriteTo.EventLog() on the LoggerConfiguration:

Log.Logger = new LoggerConfiguration()
    .WriteTo.EventLog("Sample App", manageEventSource: true)
    .CreateLogger();

Log.Information("Hello, Windows Event Log!");

Log.CloseAndFlush();

Events will appear under the Application log with the specified source name:

Screenshot

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 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. 
.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 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 is compatible.  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 (32)

Showing the top 5 NuGet packages that depend on Serilog.Sinks.EventLog:

Package Downloads
Epsagon.Dotnet.Core

Package Description

BlackMaple.MachineFramework

FMS Insight is a client and server which runs on an flexible machining system (FMS) cell controller. It provides a server which stores a log of all events and stores a log of planned jobs, a server which translates incomming planned jobs into jobs in the cell controller, a REST-like HTTP API which allows other programs to view the events and create planned jobs, and an HTML client which displays a dashboard, station monitor, and data analysis based on the log of events, planned jobs, and current cell status.

Aj.Platform.Core

Biblioteca de Uso Geral para integrações com as API OmsAj

OptimaJet.Logging

Base logger for the WorkflowServer and DWKit.

PS.Common.Foundation.Package

PS.Common.Foundation.Package.Nuget Description

GitHub repositories (7)

Showing the top 5 popular GitHub repositories that depend on Serilog.Sinks.EventLog:

Repository Stars
win-acme/win-acme
A simple ACME client for Windows (for use with Let's Encrypt et al.)
rnwood/smtp4dev
smtp4dev - the fake smtp email server for development and testing
DaxStudio/DaxStudio
DAX Studio is a tool to write, execute, and analyze DAX queries in Power BI Desktop, Power Pivot for Excel, and Analysis Services Tabular.
dragonfruitnetwork/onionfruit
OnionFruit™ - Connect to the Tor network with minimal effort
container-desktop/container-desktop
Provides an alternative for Docker for Desktop on Windows using WSL2.
Version Downloads Last updated
4.0.1-dev-00087 4,412 6/23/2024
4.0.0 516,996 6/14/2024
4.0.0-dev-00079 361 6/9/2024
4.0.0-dev-00077 315 6/9/2024
3.1.0 7,713,404 6/15/2018
3.1.0-dev-00060 2,047 6/12/2018
3.1.0-dev-00056 11,635 1/23/2018
3.1.0-dev-00049 2,087 11/23/2017
3.0.47 659,159 11/23/2017
3.0.37-dev-00048 1,923 11/23/2017
3.0.37-dev-00043 2,545 5/14/2017
3.0.37-dev-00040 2,532 2/13/2017
3.0.37-dev-00038 2,581 10/14/2016
3.0.36 253,124 9/21/2016
2.1.30 10,963 8/23/2016
2.0.22 3,111 8/12/2016
2.0.21 2,202 8/12/2016
2.0.13 19,977 7/12/2016
1.5.11 70,788 6/15/2015
1.5.8 3,312 5/28/2015
1.5.4 6,941 4/2/2015
1.5.3 2,394 4/1/2015
1.5.2 2,284 3/30/2015
1.5.1 2,515 3/27/2015
1.4.196 6,260 2/22/2015
1.4.182 2,706 2/15/2015
1.4.168 2,610 2/8/2015
1.4.155 2,443 2/1/2015
1.4.139 2,734 1/23/2015
1.4.118 2,470 1/13/2015
1.4.113 4,645 1/6/2015
1.4.102 2,806 12/21/2014
1.4.99 2,715 12/18/2014
1.4.97 2,588 12/18/2014
1.4.76 2,686 12/8/2014
1.4.39 2,489 11/26/2014
1.4.34 2,404 11/24/2014
1.4.28 2,393 11/24/2014
1.4.27 2,453 11/23/2014
1.4.23 2,515 11/21/2014
1.4.22 2,427 11/21/2014
1.4.21 2,425 11/21/2014
1.4.18 2,739 11/18/2014
1.4.15 3,745 11/4/2014
1.4.14 2,784 10/23/2014
1.4.13 2,319 10/23/2014
1.4.12 2,515 10/12/2014
1.4.11 2,281 10/8/2014
1.4.10 2,444 9/26/2014
1.4.9 2,366 9/17/2014
1.4.8 2,347 9/11/2014
1.4.7 2,374 9/1/2014
1.4.6 2,347 8/31/2014
1.4.5 2,332 8/27/2014
1.4.4 2,285 8/27/2014
1.4.3 2,322 8/25/2014
1.4.2 2,364 8/23/2014
1.4.1 2,337 8/23/2014
1.3.43 2,453 8/4/2014
1.3.42 2,269 7/30/2014
1.3.41 2,379 7/28/2014
1.3.40 2,290 7/26/2014
1.3.39 2,234 7/25/2014
1.3.37 2,237 7/25/2014
1.3.36 2,347 7/20/2014
1.3.35 2,294 7/17/2014
1.3.34 2,411 7/6/2014
1.3.33 2,400 6/30/2014
1.3.30 2,391 6/19/2014
1.3.29 2,381 6/19/2014
1.3.28 2,298 6/19/2014
1.3.27 2,283 6/18/2014
1.3.26 2,352 6/18/2014
1.3.25 2,630 6/9/2014
1.3.24 2,438 5/21/2014
1.3.23 2,343 5/20/2014
1.3.20 2,350 5/18/2014
1.3.19 2,283 5/17/2014
1.3.18 2,305 5/17/2014
1.3.17 2,355 5/17/2014
1.3.16 2,300 5/17/2014
1.3.15 2,381 5/16/2014
1.3.14 2,406 5/16/2014
1.3.13 2,334 5/16/2014
1.3.12 2,295 5/14/2014
1.3.7 2,343 5/11/2014
1.3.6 2,329 5/9/2014
1.3.5 2,385 5/6/2014
1.3.4 2,357 5/4/2014
1.3.3 2,462 4/28/2014
1.3.1 2,313 4/26/2014
1.2.53 2,501 4/26/2014
1.2.52 2,613 4/24/2014
1.2.51 2,597 4/18/2014
1.2.50 2,518 4/18/2014
1.2.49 2,571 4/17/2014
1.2.48 2,500 4/14/2014
1.2.47 2,557 4/14/2014
1.2.45 2,427 4/13/2014
1.2.44 2,515 4/9/2014
1.2.41 2,447 4/7/2014
1.2.40 2,389 4/7/2014
1.2.39 2,414 3/29/2014
1.2.37 2,423 3/29/2014
1.2.29 2,447 3/16/2014
1.2.27 2,369 3/14/2014
1.2.26 2,375 3/12/2014
1.2.25 6,070 2/20/2014