C# Class Nexus.Client.HeaderlessTextWriterTraceListener

A trace listener that doesn't print the header info.
Inheritance: System.Diagnostics.TextWriterTraceListener
Mostrar archivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ChangeFilePath ( string p_strNewFileName ) : void

Changes the file where the trace is saved.

Flush ( ) : void

Writes all remaining data to the underlying listener.

HeaderlessTextWriterTraceListener ( MemoryStream p_msmTraceInfo, string p_strTraceFilePath ) : System

A simple constructor that initializes the obejct with the given values.

When this constuctor is used, the trace data will only be written to the given path when SaveToFile() is called.

HeaderlessTextWriterTraceListener ( string p_strTraceFilePath ) : System

A simple constructor that initializes the obejct with the given values.

SaveToFile ( ) : void

Saves the trace info to the file.

Write ( string message ) : void

Writes the given messsage, if it isn't the header info.

Method Details

ChangeFilePath() public method

Changes the file where the trace is saved.
public ChangeFilePath ( string p_strNewFileName ) : void
p_strNewFileName string The new filename.
return void

Flush() public method

Writes all remaining data to the underlying listener.
public Flush ( ) : void
return void

HeaderlessTextWriterTraceListener() public method

A simple constructor that initializes the obejct with the given values.
When this constuctor is used, the trace data will only be written to the given path when SaveToFile() is called.
public HeaderlessTextWriterTraceListener ( MemoryStream p_msmTraceInfo, string p_strTraceFilePath ) : System
p_msmTraceInfo System.IO.MemoryStream The stream to which to send trace info.
p_strTraceFilePath string The path of the file to which to write trace info.
return System

HeaderlessTextWriterTraceListener() public method

A simple constructor that initializes the obejct with the given values.
public HeaderlessTextWriterTraceListener ( string p_strTraceFilePath ) : System
p_strTraceFilePath string The path of the file to which to write trace info.
return System

SaveToFile() public method

Saves the trace info to the file.
public SaveToFile ( ) : void
return void

Write() public method

Writes the given messsage, if it isn't the header info.
public Write ( string message ) : void
message string The message to write.
return void