FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

NLog/NLog.Targets.Network: NLog target for sending logevents over TCP / UDP network sockets (Log4JXml / GELF / Syslog / Splunk) · GitHub

Latest commit

 

History

483 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLog Network Target

NLog Network Target for sending messages using TCP / UDP sockets with support for SSL / TSL.

If having trouble with output, then check NLog InternalLogger for clues. See also Troubleshooting NLog

See the NLog Wiki - Network Target for available options and examples.

NLog Syslog Target

NLog Syslog Target combines the NLog NetworkTarget with NLog SyslogLayout Rfc5424 / Rfc3164.

See the NLog Wiki - Syslog Target for available options and examples.

NLog Splunk Target

NLog Splunk Target combines the NLog NetworkTarget with NLog SplunkLayout.

See the NLog Wiki - Splunk Target for available options and examples.

NLog GELF Target

NLog Gelf Target combines the NLog NetworkTarget with NLog GelfLayout for Graylog Extended Logging Format (GELF).

See the NLog Wiki - Gelf Target for available options and examples.

NLog Log4JXml Target

NLog Log4JXml Target combines the NLog NetworkTarget with NLog Log4JXmlEventLayout for NLogViewer / Chainsaw.

See the NLog Wiki - Log4JXml Target for available options and examples.

Register Extension

NLog will only recognize type-alias Network when loading from NLog.config-file, if having added extension to NLog.config-file:

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

Alternative register from code using fluent configuration API:

LogManager.Setup().SetupExtensions(ext => {
   ext.RegisterTarget<NLog.Targets.NetworkTarget>();
   ext.RegisterTarget<NLog.Targets.Log4JXmlTarget>();
   ext.RegisterTarget<NLog.Targets.GelfTarget>();
   ext.RegisterTarget<NLog.Targets.SplunkTarget>();
   ext.RegisterTarget<NLog.Targets.SyslogTarget>();
   ext.RegisterLayout<NLog.Layouts.Log4JXmlEventLayout>();
   ext.RegisterLayout<NLog.Layouts.GelfLayout>();
   ext.RegisterLayout<NLog.Layouts.SplunkLayout>();
   ext.RegisterLayout<NLog.Layouts.SyslogLayout>();
});

About

NLog target for sending logevents over TCP / UDP network sockets (Log4JXml / GELF / Syslog / Splunk)

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL