Serilog.Sinks.EventLog 5.0.0-dev-00091

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

Showing the top 20 packages that depend on Serilog.Sinks.EventLog.

Packages Downloads
Serilog.Exceptions
Log exception details and custom properties that are not output in Exception.ToString().
67

.NET Framework 4.6.2

.NET Framework 4.7.1

.NET 6.0

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
5.0.0-dev-00091 26 03/28/2025
4.0.1-dev-00087 53 07/18/2024
4.0.0 56 07/18/2024
4.0.0-dev-00079 54 07/18/2024
4.0.0-dev-00077 49 07/18/2024
3.1.0 55 07/18/2024
3.1.0-dev-00060 54 07/18/2024
3.1.0-dev-00056 50 07/18/2024
3.1.0-dev-00049 46 07/18/2024
3.0.47 54 07/18/2024
3.0.37-dev-00048 43 07/18/2024
3.0.37-dev-00043 51 07/18/2024
3.0.37-dev-00040 56 07/18/2024
3.0.37-dev-00038 51 07/18/2024
3.0.36 63 07/18/2024
2.1.30 51 07/18/2024
2.0.22 47 07/18/2024
2.0.21 50 07/18/2024
2.0.13 43 07/18/2024
1.5.11 51 07/18/2024
1.5.8 47 07/18/2024
1.5.4 50 07/18/2024
1.5.3 45 07/18/2024
1.5.2 49 07/18/2024
1.5.1 51 07/18/2024
1.4.196 49 07/18/2024
1.4.182 52 07/18/2024
1.4.168 63 07/18/2024
1.4.155 56 07/18/2024
1.4.139 45 07/18/2024
1.4.118 53 07/18/2024
1.4.113 53 07/18/2024
1.4.102 54 07/18/2024
1.4.99 41 07/18/2024
1.4.97 50 07/18/2024
1.4.76 52 07/18/2024
1.4.39 50 07/18/2024
1.4.34 47 07/18/2024
1.4.28 52 07/18/2024
1.4.27 44 07/18/2024
1.4.23 58 07/18/2024
1.4.22 53 07/18/2024
1.4.21 52 07/18/2024
1.4.18 60 07/18/2024
1.4.15 0 11/04/2014
1.4.14 0 10/23/2014
1.4.13 0 10/23/2014
1.4.12 0 10/12/2014
1.4.11 0 10/08/2014
1.4.10 0 09/26/2014
1.4.9 0 09/17/2014
1.4.8 0 09/11/2014
1.4.7 0 09/01/2014
1.4.6 0 08/31/2014
1.4.5 0 08/27/2014
1.4.4 0 08/27/2014
1.4.3 0 08/25/2014
1.4.2 0 08/23/2014
1.4.1 0 08/23/2014
1.3.43 0 08/04/2014
1.3.42 0 07/30/2014
1.3.41 0 07/28/2014
1.3.40 0 07/26/2014
1.3.39 0 07/25/2014
1.3.37 0 07/25/2014
1.3.36 0 07/20/2014
1.3.35 0 07/17/2014
1.3.34 0 07/06/2014
1.3.33 0 06/30/2014
1.3.30 0 06/19/2014
1.3.29 0 06/19/2014
1.3.28 0 06/19/2014
1.3.27 0 06/18/2014
1.3.26 0 06/18/2014
1.3.25 0 06/09/2014
1.3.24 0 05/21/2014
1.3.23 0 05/20/2014
1.3.20 0 05/18/2014
1.3.19 0 05/17/2014
1.3.18 0 05/17/2014
1.3.17 0 05/17/2014
1.3.16 0 05/17/2014
1.3.15 0 05/16/2014
1.3.14 0 05/16/2014
1.3.13 0 05/16/2014
1.3.12 0 05/14/2014
1.3.7 0 05/11/2014
1.3.6 0 05/09/2014
1.3.5 0 05/06/2014
1.3.4 0 05/04/2014
1.3.3 0 04/28/2014
1.3.1 0 04/26/2014
1.2.53 0 04/26/2014
1.2.52 0 04/24/2014
1.2.51 0 04/18/2014
1.2.50 0 04/18/2014
1.2.49 0 04/17/2014
1.2.48 0 04/14/2014
1.2.47 0 04/14/2014
1.2.45 0 04/13/2014
1.2.44 0 04/09/2014
1.2.41 0 04/07/2014
1.2.40 0 04/07/2014
1.2.39 0 03/29/2014
1.2.37 0 03/29/2014
1.2.29 0 03/16/2014
1.2.27 0 03/14/2014
1.2.26 0 03/12/2014
1.2.25 0 02/20/2014