C# Класс DotNetMigrations.Contrib.TextLog.TextLog

Наследование: LoggerBase
Показать файл Открыть проект

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

Метод Описание
Dispose ( ) : void

Disposes of resources that were holding memory and other resources.

TextLog ( ) : System

Instantiates a new instance of the TextLog class

Write ( string message ) : void
WriteError ( string message ) : void

Writes an error message to the textual log file.

WriteLine ( string message ) : void

Write a message to the textual log file.

WriteWarning ( string message ) : void

Writes a warning message to the textual log file.

Приватные методы

Метод Описание
GetLogFilePath ( ) : string

Obtains the Log File path from the configuration file's AppSettings section

Initialize ( ) : void

Initializes the logfile to write to.

Описание методов

Dispose() публичный Метод

Disposes of resources that were holding memory and other resources.
public Dispose ( ) : void
Результат void

TextLog() публичный Метод

Instantiates a new instance of the TextLog class
public TextLog ( ) : System
Результат System

Write() публичный Метод

public Write ( string message ) : void
message string
Результат void

WriteError() публичный Метод

Writes an error message to the textual log file.
public WriteError ( string message ) : void
message string The error message to log.
Результат void

WriteLine() публичный Метод

Write a message to the textual log file.
public WriteLine ( string message ) : void
message string The message to log.
Результат void

WriteWarning() публичный Метод

Writes a warning message to the textual log file.
public WriteWarning ( string message ) : void
message string The warning message to log.
Результат void