C# 클래스 Microsoft.Practices.Prism.Logging.TextLogger

Implementation of ILoggerFacade that logs into a TextWriter.
상속: ILoggerFacade, IDisposable
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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