BT

Integrating Windows Logging Through Linux With Syslog4NET

| by Jeff Martin Follow 16 Followers on Mar 17, 2014. Estimated reading time: 1 minute |

Accurate logging is an important requirement for any server environment.  To make centralized administration easier, applications typically prefer to log to the host operating system's central logging system.  For Windows-based systems this means Event Viewer, while Linux/UNIX based systems have relied on Syslog for decades.  The difference in systems can make heterogeneous environments more difficult to support.  The aptly named syslog4net provides .NET applications with an easy way to log directly to a Syslog daemon.

Syslog4net is an addition to log4net that brings the ability to create messages that are compliant with the RFC5424 standard.  While log4net currently allows messages to be written to a syslog server, they are not in the standards compliant format that syslog4net provides.  The usage of the RFC5424 standard provides several more fields, including message priority, application name, and hostname among several others.  The team notes that in addition to these fields, syslog4net can be used to log exceptions.  Information about the exception is routed to syslog, while the the full details of the exception (message, stack trace, etc) are logged locally.  This provides awareness of when exceptions occur without overfilling logs.  Finally syslog4net allows the logging of any (key,value) data desired.

Syslog4net has been written by Dominic Lachowicz and Joe Polino with the copyright held by Merchant Warehouse LLC.  The project is open source and available under the Apache License.  Project files are available on GitHub and are written in C#.

 

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT