C# 클래스 Skytap.Utilities.TraceLogger

Logs information using event listeners and built in System.Diagnostics.Trace functionality.
상속: Logger
파일 보기 프로젝트 열기: skytap/Skytap-TFS-Automation-Pack 1 사용 예제들

Private Properties

프로퍼티 타입 설명
InitializeLogFile void

공개 메소드들

메소드 설명
Flush ( ) : void

Write out the contents of the log string to the file, flushing the contents of the in-memory string.

Reset ( ) : void

Resets the log file by flushing the Trace, closing any files, and creating a new log filename.

This method will likely not be frequently used outside of tests, but is provided to start a new session without closing down the instance.

TraceLogger ( ) : System

Constructor for TraceLogger class.

TraceLogger ( TraceListener listener ) : System

Constructor for TraceLogger class.

This constructor allows for overriding the default type of TraceListener. This can be useful for test purposes when a log file need not be generated.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
_LogError ( string message ) : void
_LogImportant ( string message ) : void
_LogInfo ( string message ) : void

비공개 메소드들

메소드 설명
InitializeLogFile ( ) : void

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

Write out the contents of the log string to the file, flushing the contents of the in-memory string.
public Flush ( ) : void
리턴 void

Reset() 공개 메소드

Resets the log file by flushing the Trace, closing any files, and creating a new log filename.
This method will likely not be frequently used outside of tests, but is provided to start a new session without closing down the instance.
public Reset ( ) : void
리턴 void

TraceLogger() 공개 메소드

Constructor for TraceLogger class.
public TraceLogger ( ) : System
리턴 System

TraceLogger() 공개 메소드

Constructor for TraceLogger class.
This constructor allows for overriding the default type of TraceListener. This can be useful for test purposes when a log file need not be generated.
public TraceLogger ( TraceListener listener ) : System
listener System.Diagnostics.TraceListener
리턴 System

_LogError() 보호된 메소드

protected _LogError ( string message ) : void
message string
리턴 void

_LogImportant() 보호된 메소드

protected _LogImportant ( string message ) : void
message string
리턴 void

_LogInfo() 보호된 메소드

protected _LogInfo ( string message ) : void
message string
리턴 void