Skip to content
Integration point for .NET NLog
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ReportPortal.NLog
.gitignore
LICENSE
Logo.png
README.md
ReportPortal.NLog.sln
appveyor.yml

README.md

Build status

Installation

Install ReportPortal.NLog NuGet package.

NuGet version

PS> Install-Package ReportPortal.NLog

Configuration

Add custom extension in NLog configuration.

<nlog>
  ...
  <extensions>
    <add assembly="ReportPortal.NLog"/>
  </extensions>
  ...
</nlog>

Define custom target.

<nlog>
  ...
  <targets>
    <target name="RP" xsi:type="ReportPortal" />
  </targets>
  ...
</nlog>

Specify rule for logging messages to custom target.

<nlog>
  ...
  <rules>
    <logger name="*" minlevel="Trace" writeTo="RP" />
  </rules>
  ...
</nlog>
You can’t perform that action at this time.