C# Class ParkitectNexus.Data.Utilities.Logger

Represents a logger streaming to a file.
Inheritance: ILogger
Mostra file Open project: ParkitectNexus/ParkitectNexusClient

Public Methods

Method Description
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.

Method Details

Close() public method

Closes the logging stream.
public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Logger() public method

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

Open() public method

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

WriteException() public method

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

WriteException() public method

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.
return void

WriteLine() public method

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

WriteLine() public method

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.
return void