C# Class NLog.Model.LogEvent

Mostrar archivo Open project: loresoft/NLog.Xml Class Usage Examples

Public Methods

Method Description
Load ( Stream stream ) : LogEvent

Creates an new instance by loading the specified stream.

Load ( TextReader reader ) : LogEvent

Creates an new instance by loading the specified reader.

Load ( XmlReader reader ) : LogEvent

Creates an new instance by loading the specified reader.

Load ( string xml ) : LogEvent

Creates an new instance by loading the specified XML.

LogEvent ( ) : System

Initializes a new instance of the LogEvent class.

Populate ( LogEventInfo logEventInfo ) : void

Populates from specified LogEventInfo.

Save ( ) : string

Saves this instance to an XML string.

Save ( Stream stream ) : void

Saves this instance the specified stream.

Save ( TextWriter writer ) : void

Saves this instance the specified writer.

Save ( XmlWriter writer ) : void

Saves this instance the specified writer.

ToString ( ) : string

Method Details

Load() public static method

Creates an new instance by loading the specified stream.
public static Load ( Stream stream ) : LogEvent
stream Stream The to load the instance from.
return LogEvent

Load() public static method

Creates an new instance by loading the specified reader.
public static Load ( TextReader reader ) : LogEvent
reader TextReader The reader to load the instance from.
return LogEvent

Load() public static method

Creates an new instance by loading the specified reader.
public static Load ( XmlReader reader ) : LogEvent
reader XmlReader The reader to load the instance from.
return LogEvent

Load() public static method

Creates an new instance by loading the specified XML.
public static Load ( string xml ) : LogEvent
xml string The XML string representing this instance.
return LogEvent

LogEvent() public method

Initializes a new instance of the LogEvent class.
public LogEvent ( ) : System
return System

Populate() public method

Populates from specified LogEventInfo.
public Populate ( LogEventInfo logEventInfo ) : void
logEventInfo LogEventInfo The log event info.
return void

Save() public method

Saves this instance to an XML string.
public Save ( ) : string
return string

Save() public method

Saves this instance the specified stream.
public Save ( Stream stream ) : void
stream Stream The to save this instance to.
return void

Save() public method

Saves this instance the specified writer.
public Save ( TextWriter writer ) : void
writer System.IO.TextWriter The to save this instance to.
return void

Save() public method

Saves this instance the specified writer.
public Save ( XmlWriter writer ) : void
writer System.Xml.XmlWriter The to save this instance to.
return void

ToString() public method

public ToString ( ) : string
return string