C# Класс Microsoft.Practices.Prism.Logging.TextLogger

Implementation of ILoggerFacade that logs into a TextWriter.
Наследование: ILoggerFacade, IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Calls Dispose(bool)

Log ( string message, Category category, Priority priority ) : void

Write a new log entry with the specified category and priority.

TextLogger ( ) : System

Initializes a new instance of TextLogger that writes to the console output.

TextLogger ( TextWriter writer ) : System

Initializes a new instance of TextLogger.

Защищенные методы

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

Disposes the associated TextWriter.

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Calls Dispose(bool)
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Disposes the associated TextWriter.
protected Dispose ( bool disposing ) : void
disposing bool When , disposes the associated .
Результат void

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

Write a new log entry with the specified category and priority.
public Log ( string message, Category category, Priority priority ) : void
message string Message body to log.
category Category Category of the entry.
priority Priority The priority of the entry.
Результат void

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

Initializes a new instance of TextLogger that writes to the console output.
public TextLogger ( ) : System
Результат System

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

Initializes a new instance of TextLogger.
public TextLogger ( TextWriter writer ) : System
writer System.IO.TextWriter The writer to use for writing log entries.
Результат System