NLog.Targets.GelfLayout NuGet Package

NLog.Targets.Gelf is a custom target for NLog and Graylog2 server

To use NLog.Targets.Gelf just add the following to your config file and place NLog.Targets.Gelf.dll in the same location as the NLog.dll file:

<nlog>
<extensions>
<add assembly="NLog.Targets.Gelf" />
</extensions>

<targets>
<target name="Gelf" type="Gelf" gelfserver="" port="12201" maxchunksize="8154" />
</targets>
<rules>
<logger name="*" minLevel="Trace" appendTo="Gelf"/>
</rules>
</nlog>

This project was an amalgamation of NLog.Targets.Syslog (https://github.com/graffen/NLog.Targets.Syslog) and Gelf4Net (https://github.com/jjchiw/gelf4net).

Thanks to those guys for their code.

This project is also using Newtonsoft.Json.dll (http://json.codeplex.com/) for json serialization.




Got any NLog.Targets.GelfLayout Question?





Info

Version: 4.4.1
Author(s): Naresh Tripathi
Last Update: Wednesday, January 4, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/travelrepublic/NLog.Targets.Gelf
NuGet Url: https://www.nuget.org/packages/NLog.GelfTarget


Install
Install-Package NLog.GelfTarget
dotnet add package NLog.GelfTarget
paket add NLog.GelfTarget
NLog.GelfTarget Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.8

avg-downloads-per-day

9

days-since-last-release

2880