Skip to content

KennyBu/NLog.Raygun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NLog.Raygun

A custom NLog target that will push errors to Raygun.

Configuration

You need to configure NLog.

NLog Configuration

Your NLog.config should look something like this:

<?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 the assembly -->
    <add assembly="NLog.Raygun"/>
  </extensions>
  <targets>
    <!-- Set up the target -->
    <target name="asyncRaygun" xsi:type="AsyncWrapper">
		<target name="RayGunTarget" type="RayGun" ApiKey="" Tags="" IgnoreFormFieldNames="" IgnoreCookieNames=""
				IgnoreServerVariableNames="" IgnoreHeaderNames=""
				layout="${uppercase:${level}} ${message} ${exception:format=ToString,StackTrace}${newline}"/>
	</target>
  </targets>
  <rules>
    <!-- Set up the logger. -->
    <logger name="*" minlevel="Info" writeTo="RayGunTarget" />
  </rules>
</nlog>

About

A custom NLog target that will push errors to Raygun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published