Skip to content
NLog Sentry is a custom target for NLog enabling you to send logging messages to the Sentry logging service.
C#
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of bjarneriis:master.
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.
NLog.Targets.Sentry.UnitTests
NLog.Targets.Sentry
.gitignore
License.txt
NLog.Targets.Sentry.sln
README.md

README.md

Sentry Target for NLog

NLog Sentry is a custom target for NLog enabling you to send logging messages to the Sentry logging service.

Configuration

To use the Sentry target, simply add it an extension in the NLog.config file and place the NLog.Targets.Sentry.dll in the same location as the NLog.dll & NLog.config files.

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <extensions>
    <add assembly="NLog.Targets.Sentry" />
  </extensions>

  <targets>
    <target name="Sentry" type="Sentry" dsn="<your sentry dsn>"/>
  </targets>

  <rules>
    <logger name="*"  appendTo="Sentry" minLevel="Error"/>
  </rules>
</nlog>

The package is also available through NuGet as "NLog.Targets.Sentry".

You can’t perform that action at this time.