C# Класс Nexus.Client.HeaderlessTextWriterTraceListener

A trace listener that doesn't print the header info.
Наследование: System.Diagnostics.TextWriterTraceListener
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ChangeFilePath() публичный Метод

Changes the file where the trace is saved.
public ChangeFilePath ( string p_strNewFileName ) : void
p_strNewFileName string The new filename.
Результат void

Flush() публичный Метод

Writes all remaining data to the underlying listener.
public Flush ( ) : void
Результат void

HeaderlessTextWriterTraceListener() публичный Метод

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.
Результат System

HeaderlessTextWriterTraceListener() публичный Метод

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.
Результат System

SaveToFile() публичный Метод

Saves the trace info to the file.
public SaveToFile ( ) : void
Результат void

Write() публичный Метод

Writes the given messsage, if it isn't the header info.
public Write ( string message ) : void
message string The message to write.
Результат void