C# Class ParkitectNexus.Data.Utilities.Logger

Represents a logger streaming to a file.
Inheritance: ILogger
Afficher le fichier Open project: ParkitectNexus/ParkitectNexusClient

Méthodes publiques

Méthode 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 méthode

Closes the logging stream.
public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Logger() public méthode

Initializes a new instance of the Logger class.
public Logger ( ) : System
Résultat System

Open() public méthode

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

WriteException() public méthode

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

WriteException() public méthode

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.
Résultat void

WriteLine() public méthode

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

WriteLine() public méthode

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.
Résultat void