NLog.WCF

April 19, 2026 ยท View on GitHub

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="6.*" />
    
  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.