Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.06 KB

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.