C# 클래스 Examples.ExamplesConsole.NLogLogger

An example implementation of an external logging framework, in this case NLog. Uses a simple configuration that logs to console (DEBUG log level and above) and to a file (All log Levels).
상속: ILogger
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
Debug ( string message ) : void
Error ( string message ) : void
Fatal ( string message ) : void
Fatal ( string message, Exception ex ) : void
Info ( string message ) : void
NLogLogger ( ) : System

Initialise a new instance of the NLogLogger using a default configuration.

Shutdown ( ) : void
Trace ( string message ) : void
Warn ( string message ) : void

메소드 상세

Debug() 공개 메소드

public Debug ( string message ) : void
message string
리턴 void

Error() 공개 메소드

public Error ( string message ) : void
message string
리턴 void

Fatal() 공개 메소드

public Fatal ( string message ) : void
message string
리턴 void

Fatal() 공개 메소드

public Fatal ( string message, Exception ex ) : void
message string
ex System.Exception
리턴 void

Info() 공개 메소드

public Info ( string message ) : void
message string
리턴 void

NLogLogger() 공개 메소드

Initialise a new instance of the NLogLogger using a default configuration.
public NLogLogger ( ) : System
리턴 System

Shutdown() 공개 메소드

public Shutdown ( ) : void
리턴 void

Trace() 공개 메소드

public Trace ( string message ) : void
message string
리턴 void

Warn() 공개 메소드

public Warn ( string message ) : void
message string
리턴 void