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)
Dependencies
- Newtonsoft.Json(>= 9.0.1)
- NLog(>= 4.4.1)
Tags
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.