Skip to content

NLog/NLog.WCF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLog.WCF

NLog WCF target for sending LogEvents to NLog Receiver Service (using WCF or Web Services)

Version AppVeyor

How to install

  1. Install the package

    Install-Package NLog.WCF or in your csproj:

    <PackageReference Include="NLog.WCF" Version="5.*" />
  2. Add to your nlog.config:

    <extensions>
        <add assembly="NLog.WCF"/>
    </extensions>

    Alternative register from code using fluent configuration API:

    LogManager.Setup().SetupExtensions(ext => {
       ext.RegisterTarget<NLog.Targets.LogReceiverWebServiceTarget>();
    });

See also NLog Wiki for available options and examples.