C# Класс ParkitectNexus.Data.Utilities.Logger

Represents a logger streaming to a file.
Наследование: ILogger
Показать файл Открыть проект

Открытые методы

Метод Описание
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