C# 클래스 Nexus.Client.HeaderlessTextWriterTraceListener

A trace listener that doesn't print the header info.
상속: System.Diagnostics.TextWriterTraceListener
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
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