C# Class NLog.Serialization.LogEventInfoWriter

LogEventInfo XML writer
Mostra file Open project: loresoft/NLog.Xml Class Usage Examples

Public Methods

Method Description
Write ( StringBuilder builder, LogEventInfo logEvent ) : void

Writes the specified logEvent

Write ( XmlWriter writer, LogEventInfo logEvent ) : void

Writes the specified logEvent

Private Methods

Method Description
WriteError ( XmlWriter writer, Exception error ) : void
WriteProperties ( XmlWriter writer, object>.IDictionary properties ) : void
WriteProperty ( XmlWriter writer, object>.KeyValuePair property ) : void

Method Details

Write() public method

Writes the specified logEvent
public Write ( StringBuilder builder, LogEventInfo logEvent ) : void
builder StringBuilder The to write to
logEvent LogEventInfo The log event to write
return void

Write() public method

Writes the specified logEvent
public Write ( XmlWriter writer, LogEventInfo logEvent ) : void
writer System.Xml.XmlWriter The to write to
logEvent LogEventInfo The log event to write
return void