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

Implementation of ILoggerFacade that logs into a TextWriter.
Inheritance: ILoggerFacade, IDisposable
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the associated TextWriter.

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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

Log() public méthode

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

TextLogger() public méthode

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

TextLogger() public méthode

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