C# Class syslog4net.Layout.SyslogLayout

Log4net layout class with default support for the Syslog message format as described in Syslog IETF 5424 standard: http://tools.ietf.org/html/rfc5424
Inheritance: log4net.Layout.LayoutSkeleton
Show file Open project: Cayan-LLC/syslog4net Class Usage Examples

Public Methods

Method Description
ActivateOptions ( ) : void

Activates the use of options for the converter allowing the underlying PatternLayout implmentation to behave correctly

Format ( TextWriter writer, log4net.Core.LoggingEvent logEvent ) : void

Formats data within the event and writes the formatted data out to the provided writer instance

SyslogLayout ( ) : System

Instantiates a new instance of SyslogLayout

Method Details

ActivateOptions() public method

Activates the use of options for the converter allowing the underlying PatternLayout implmentation to behave correctly
public ActivateOptions ( ) : void
return void

Format() public method

Formats data within the event and writes the formatted data out to the provided writer instance
public Format ( TextWriter writer, log4net.Core.LoggingEvent logEvent ) : void
writer System.IO.TextWriter writer to output the formatted data to
logEvent log4net.Core.LoggingEvent logging event data to use
return void

SyslogLayout() public method

Instantiates a new instance of SyslogLayout
public SyslogLayout ( ) : System
return System