Serilog.Sinks.EventLog
4.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Serilog.Sinks.EventLog --version 4.0.0
NuGet\Install-Package Serilog.Sinks.EventLog -Version 4.0.0
<PackageReference Include="Serilog.Sinks.EventLog" Version="4.0.0" />
<PackageVersion Include="Serilog.Sinks.EventLog" Version="4.0.0" />
<PackageReference Include="Serilog.Sinks.EventLog" />
paket add Serilog.Sinks.EventLog --version 4.0.0
#r "nuget: Serilog.Sinks.EventLog, 4.0.0"
#:package Serilog.Sinks.EventLog@4.0.0
#addin nuget:?package=Serilog.Sinks.EventLog&version=4.0.0
#tool nuget:?package=Serilog.Sinks.EventLog&version=4.0.0
Serilog.Sinks.EventLog
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:

| Product | Versions 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. 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 was computed. 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 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. |
-
.NETFramework 4.6.2
- Serilog (>= 4.0.0)
-
.NETFramework 4.7.1
- Serilog (>= 4.0.0)
-
.NETStandard 2.0
- Serilog (>= 4.0.0)
- System.Diagnostics.EventLog (>= 8.0.0)
-
net6.0
- Serilog (>= 4.0.0)
- System.Diagnostics.EventLog (>= 8.0.0)
-
net8.0
- Serilog (>= 4.0.0)
- System.Diagnostics.EventLog (>= 8.0.0)
NuGet packages (36)
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. |
|
|
OptimaJet.Logging
Base logger for the WorkflowServer and DWKit. |
|
|
Autoware.Util
Pacote que contempla funções utils. |
|
|
PS.Common.Foundation.Package
PS.Common.Foundation.Package.Nuget Description |
GitHub repositories (8)
Showing the top 8 popular GitHub repositories that depend on Serilog.Sinks.EventLog:
| Repository | Stars |
|---|---|
|
win-acme/win-acme
Automate SSL/TLS certificates on Windows with ease
|
|
|
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.
|
|
|
Jorixon/JASM
Just Another Skin Manager
|
|
|
simple-acme/simple-acme
A simple cross platform ACME client (for use with Let's Encrypt et al.)
|
|
|
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.
|
|
|
newrelic/newrelic-dotnet-agent
The New Relic .NET language agent.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0-dev-00091 | 5,394 | 1/27/2025 |
| 4.0.1-dev-00087 | 13,807 | 6/23/2024 |
| 4.0.0 | 2,972,360 | 6/14/2024 |
| 4.0.0-dev-00079 | 618 | 6/9/2024 |
| 4.0.0-dev-00077 | 584 | 6/9/2024 |
| 3.1.0 | 9,661,338 | 6/15/2018 |
| 3.1.0-dev-00060 | 2,734 | 6/12/2018 |
| 3.1.0-dev-00056 | 12,400 | 1/23/2018 |
| 3.1.0-dev-00049 | 2,647 | 11/23/2017 |
| 3.0.47 | 850,700 | 11/23/2017 |
| 3.0.37-dev-00048 | 2,477 | 11/23/2017 |
| 3.0.37-dev-00043 | 3,126 | 5/14/2017 |
| 3.0.37-dev-00040 | 3,086 | 2/13/2017 |
| 3.0.37-dev-00038 | 3,140 | 10/14/2016 |
| 3.0.36 | 427,111 | 9/21/2016 |
| 2.1.30 | 165,560 | 8/23/2016 |
| 2.0.22 | 154,026 | 8/12/2016 |
| 2.0.21 | 153,051 | 8/12/2016 |
| 2.0.13 | 172,566 | 7/12/2016 |
| 1.5.11 | 261,585 | 6/15/2015 |
| 1.5.8 | 154,271 | 5/28/2015 |
| 1.5.4 | 157,878 | 4/2/2015 |
| 1.5.3 | 153,255 | 4/1/2015 |
| 1.5.2 | 153,175 | 3/30/2015 |
| 1.5.1 | 153,397 | 3/27/2015 |
| 1.4.196 | 157,136 | 2/22/2015 |
| 1.4.182 | 153,626 | 2/15/2015 |
| 1.4.168 | 153,498 | 2/8/2015 |
| 1.4.155 | 153,317 | 2/1/2015 |
| 1.4.139 | 153,626 | 1/23/2015 |
| 1.4.118 | 153,358 | 1/13/2015 |
| 1.4.113 | 155,905 | 1/6/2015 |
| 1.4.102 | 153,661 | 12/21/2014 |
| 1.4.99 | 153,590 | 12/18/2014 |
| 1.4.97 | 153,455 | 12/18/2014 |
| 1.4.76 | 153,563 | 12/8/2014 |
| 1.4.39 | 153,352 | 11/26/2014 |
| 1.4.34 | 153,278 | 11/24/2014 |
| 1.4.28 | 153,269 | 11/24/2014 |
| 1.4.27 | 153,329 | 11/23/2014 |
| 1.4.23 | 153,391 | 11/21/2014 |
| 1.4.22 | 153,307 | 11/21/2014 |
| 1.4.21 | 153,307 | 11/21/2014 |
| 1.4.18 | 153,595 | 11/18/2014 |
| 1.4.15 | 154,610 | 11/4/2014 |
| 1.4.14 | 153,653 | 10/23/2014 |
| 1.4.13 | 153,180 | 10/23/2014 |
| 1.4.12 | 153,371 | 10/12/2014 |
| 1.4.11 | 153,139 | 10/8/2014 |
| 1.4.10 | 153,312 | 9/26/2014 |
| 1.4.9 | 153,213 | 9/17/2014 |
| 1.4.8 | 153,193 | 9/11/2014 |
| 1.4.7 | 153,219 | 9/1/2014 |
| 1.4.6 | 153,196 | 8/31/2014 |
| 1.4.5 | 153,189 | 8/27/2014 |
| 1.4.4 | 153,153 | 8/27/2014 |
| 1.4.3 | 153,184 | 8/25/2014 |
| 1.4.2 | 153,227 | 8/23/2014 |
| 1.4.1 | 153,201 | 8/23/2014 |
| 1.3.43 | 153,284 | 8/4/2014 |
| 1.3.42 | 153,126 | 7/30/2014 |
| 1.3.41 | 153,218 | 7/28/2014 |
| 1.3.40 | 153,136 | 7/26/2014 |
| 1.3.39 | 153,087 | 7/25/2014 |
| 1.3.37 | 153,076 | 7/25/2014 |
| 1.3.36 | 153,209 | 7/20/2014 |
| 1.3.35 | 153,148 | 7/17/2014 |
| 1.3.34 | 153,268 | 7/6/2014 |
| 1.3.33 | 153,231 | 6/30/2014 |
| 1.3.30 | 153,233 | 6/19/2014 |
| 1.3.29 | 153,223 | 6/19/2014 |
| 1.3.28 | 153,127 | 6/19/2014 |
| 1.3.27 | 153,125 | 6/18/2014 |
| 1.3.26 | 153,193 | 6/18/2014 |
| 1.3.25 | 153,464 | 6/9/2014 |
| 1.3.24 | 153,297 | 5/21/2014 |
| 1.3.23 | 153,192 | 5/20/2014 |
| 1.3.20 | 153,207 | 5/18/2014 |
| 1.3.19 | 153,133 | 5/17/2014 |
| 1.3.18 | 153,148 | 5/17/2014 |
| 1.3.17 | 153,203 | 5/17/2014 |
| 1.3.16 | 153,136 | 5/17/2014 |
| 1.3.15 | 153,237 | 5/16/2014 |
| 1.3.14 | 153,262 | 5/16/2014 |
| 1.3.13 | 153,192 | 5/16/2014 |
| 1.3.12 | 153,146 | 5/14/2014 |
| 1.3.7 | 153,203 | 5/11/2014 |
| 1.3.6 | 153,192 | 5/9/2014 |
| 1.3.5 | 153,252 | 5/6/2014 |
| 1.3.4 | 153,238 | 5/4/2014 |
| 1.3.3 | 153,339 | 4/28/2014 |
| 1.3.1 | 153,191 | 4/26/2014 |
| 1.2.53 | 153,365 | 4/26/2014 |
| 1.2.52 | 153,480 | 4/24/2014 |
| 1.2.51 | 153,472 | 4/18/2014 |
| 1.2.50 | 153,387 | 4/18/2014 |
| 1.2.49 | 153,448 | 4/17/2014 |
| 1.2.48 | 153,380 | 4/14/2014 |
| 1.2.47 | 153,426 | 4/14/2014 |
| 1.2.45 | 153,301 | 4/13/2014 |
| 1.2.44 | 153,389 | 4/9/2014 |
| 1.2.41 | 153,324 | 4/7/2014 |
| 1.2.40 | 153,245 | 4/7/2014 |
| 1.2.39 | 153,287 | 3/29/2014 |
| 1.2.37 | 153,298 | 3/29/2014 |
| 1.2.29 | 153,321 | 3/16/2014 |
| 1.2.27 | 153,245 | 3/14/2014 |
| 1.2.26 | 153,252 | 3/12/2014 |
| 1.2.25 | 159,317 | 2/20/2014 |