C# Class Nexus.Client.HeaderlessTextWriterTraceListener

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

Méthodes publiques

Méthode 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 méthode

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

Flush() public méthode

Writes all remaining data to the underlying listener.
public Flush ( ) : void
Résultat void

HeaderlessTextWriterTraceListener() public méthode

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.
Résultat System

HeaderlessTextWriterTraceListener() public méthode

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.
Résultat System

SaveToFile() public méthode

Saves the trace info to the file.
public SaveToFile ( ) : void
Résultat void

Write() public méthode

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