Contrib.EnterpriseLibrary.Logging.Serilog 1.0.0

dotnet add package Contrib.EnterpriseLibrary.Logging.Serilog --version 1.0.0
NuGet\Install-Package Contrib.EnterpriseLibrary.Logging.Serilog -Version 1.0.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="Contrib.EnterpriseLibrary.Logging.Serilog" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Contrib.EnterpriseLibrary.Logging.Serilog --version 1.0.0
#r "nuget: Contrib.EnterpriseLibrary.Logging.Serilog, 1.0.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.
// Install Contrib.EnterpriseLibrary.Logging.Serilog as a Cake Addin
#addin nuget:?package=Contrib.EnterpriseLibrary.Logging.Serilog&version=1.0.0

// Install Contrib.EnterpriseLibrary.Logging.Serilog as a Cake Tool
#tool nuget:?package=Contrib.EnterpriseLibrary.Logging.Serilog&version=1.0.0

What EnterpriseLibrary.Logging.Serilog does

If you use EnterpriseLibrary and you'd like to send your logs through Serilog, you can use this library to plumb the two logging systems together.

How to use this

In your App.config or Web.config, locate the loggingConfiguration section

  1. add the listener

  2. link the listener to the required categories

     <listeners>
       <add 
         name="SerilogTraceListener1" 
         type="EnterpriseLibrary.Logging.Serilog.SerilogTraceListener, EnterpriseLibrary.Logging.Serilog" 
         listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.CustomTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.1, Culture=neutral" />
     </listeners >
     <categorySources>
       <add switchValue="All" name="General">
         <listeners>
           <add name= "SerilogTraceListener1" />
         </listeners>
       </add>
     </categorySources>
    
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 572 8/19/2019

Initial release