C# 클래스 Skytap.Utilities.Logger

Base class for all loggers. Provides the interface that all loggers must satisfy.
The Logger class and set of Logger subclasses basically implement a Strategy design pattern.
상속: IDisposable
파일 보기 프로젝트 열기: skytap/Skytap-TFS-Automation-Pack

공개 메소드들

메소드 설명
Dispose ( ) : void

Call when logging is complete to clean up any resources (like a file handle).

Flush ( ) : void

Flushes the contents of the log to ensure, in the case of writing to disk, that all content is written appropriately. Not all subclasses override this.

LogError ( string message ) : void

Logs any errors to the log file provided filter levels allow for it.

LogImportant ( string message ) : void

Logs the equivalent of a warning provided filter levels allow for it.

LogInfo ( string message ) : void

Logs informational messages provided filtering allows for it.

Reset ( ) : void

Reset the log file and start over. Not all subclasses will implement this.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Does the real work of Dispose - cleaning up any resources owned by the logger. This class should be overridden in a subclass to provide real functionality.

Logger ( ) : System

Default constructor for Logger. This constructor is protected due to the class being abstract.

_LogError ( string message ) : void

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.

_LogImportant ( string message ) : void

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.

_LogInfo ( string message ) : void

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.

비공개 메소드들

메소드 설명
GetMessagePrefix ( ) : string

메소드 상세

Dispose() 공개 메소드

Call when logging is complete to clean up any resources (like a file handle).
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Does the real work of Dispose - cleaning up any resources owned by the logger. This class should be overridden in a subclass to provide real functionality.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

Flushes the contents of the log to ensure, in the case of writing to disk, that all content is written appropriately. Not all subclasses override this.
public Flush ( ) : void
리턴 void

LogError() 공개 메소드

Logs any errors to the log file provided filter levels allow for it.
public LogError ( string message ) : void
message string Message to input to the log; can be formatted using FormatString /// parameters.
리턴 void

LogImportant() 공개 메소드

Logs the equivalent of a warning provided filter levels allow for it.
public LogImportant ( string message ) : void
message string Message to input to the log; can be formatted using FormatString /// parameters.
리턴 void

LogInfo() 공개 메소드

Logs informational messages provided filtering allows for it.
public LogInfo ( string message ) : void
message string Message to input to the log; can be formatted using FormatString /// parameters.
리턴 void

Logger() 보호된 메소드

Default constructor for Logger. This constructor is protected due to the class being abstract.
protected Logger ( ) : System
리턴 System

Reset() 공개 메소드

Reset the log file and start over. Not all subclasses will implement this.
public Reset ( ) : void
리턴 void

_LogError() 보호된 추상적인 메소드

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
protected abstract _LogError ( string message ) : void
message string Message to log.
리턴 void

_LogImportant() 보호된 추상적인 메소드

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
protected abstract _LogImportant ( string message ) : void
message string Message to log.
리턴 void

_LogInfo() 보호된 추상적인 메소드

Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
protected abstract _LogInfo ( string message ) : void
message string Message to log.
리턴 void