C# Class Microsoft.Practices.Prism.Logging.TextLogger

Implementation of ILoggerFacade that logs into a TextWriter.
Inheritance: ILoggerFacade, IDisposable
显示文件 Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the associated TextWriter.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Calls Dispose(bool)
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the associated TextWriter.
protected Dispose ( bool disposing ) : void
disposing bool When , disposes the associated .
return void

Log() public method

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

TextLogger() public method

Initializes a new instance of TextLogger that writes to the console output.
public TextLogger ( ) : System
return System

TextLogger() public method

Initializes a new instance of TextLogger.
public TextLogger ( TextWriter writer ) : System
writer System.IO.TextWriter The writer to use for writing log entries.
return System