C# 클래스 ParkitectNexus.Data.Utilities.Logger

Represents a logger streaming to a file.
상속: ILogger
파일 보기 프로젝트 열기: ParkitectNexus/ParkitectNexusClient

공개 메소드들

메소드 설명
Close ( ) : void

Closes the logging stream.

Dispose ( ) : void
Logger ( ) : System

Initializes a new instance of the Logger class.

Open ( string path ) : void

Opens the logging stream at the specified path.

WriteException ( Exception exception ) : void

Writes the specified exception to the log at log level LogLevel.Fatal.

WriteException ( Exception exception, LogLevel logLevel ) : void

Writes the specified exception to the log if the specified loglevel is at least MinimumLogLevel.

WriteLine ( string message ) : void

Writes the specified message to the log at log level LogLevel.Debug.

WriteLine ( string message, LogLevel logLevel ) : void

Writes the specified message to the log if the specified loglevel is at least MinimumLogLevel.

메소드 상세

Close() 공개 메소드

Closes the logging stream.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Logger() 공개 메소드

Initializes a new instance of the Logger class.
public Logger ( ) : System
리턴 System

Open() 공개 메소드

Opens the logging stream at the specified path.
public Open ( string path ) : void
path string The path.
리턴 void

WriteException() 공개 메소드

Writes the specified exception to the log at log level LogLevel.Fatal.
public WriteException ( Exception exception ) : void
exception System.Exception The exception.
리턴 void

WriteException() 공개 메소드

Writes the specified exception to the log if the specified loglevel is at least MinimumLogLevel.
public WriteException ( Exception exception, LogLevel logLevel ) : void
exception System.Exception The exception.
logLevel LogLevel The log level.
리턴 void

WriteLine() 공개 메소드

Writes the specified message to the log at log level LogLevel.Debug.
public WriteLine ( string message ) : void
message string The message.
리턴 void

WriteLine() 공개 메소드

Writes the specified message to the log if the specified loglevel is at least MinimumLogLevel.
public WriteLine ( string message, LogLevel logLevel ) : void
message string The message.
logLevel LogLevel The log level.
리턴 void