C# 클래스 Utilities.Logger.LamdaLog

Logger using lamda method to call external logging code. This decouples code from using a specific ILogging interface via lamdas.
상속: ILog
파일 보기 프로젝트 열기: feanz/Utilities

공개 메소드들

메소드 설명
Debug ( Func message ) : void
Debug ( string message ) : void
Error ( Func message ) : void
Error ( string message ) : void
Error ( string message, Exception exception ) : void
Fatal ( Func message ) : void
Fatal ( string message ) : void
Fatal ( string message, Exception exception ) : void
Info ( Func message ) : void
Info ( string message ) : void
Init ( Action infoLogger, Action warnLogger, Action debugLogger, Exception>.Action errorLogger, Exception>.Action fatalLogger ) : void

Initialize the different level lamda loggers.

InitializeFor ( string loggerName ) : void
Warn ( Func message ) : void
Warn ( string message ) : void

비공개 메소드들

메소드 설명
BuildMessage ( string level, object message, Exception ex = null ) : string

메소드 상세

Debug() 공개 메소드

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

Debug() 공개 메소드

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

Error() 공개 메소드

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

Error() 공개 메소드

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

Error() 공개 메소드

public Error ( string message, Exception exception ) : void
message string
exception System.Exception
리턴 void

Fatal() 공개 메소드

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

Fatal() 공개 메소드

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

Fatal() 공개 메소드

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

Info() 공개 메소드

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

Info() 공개 메소드

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

Init() 공개 메소드

Initialize the different level lamda loggers.
public Init ( Action infoLogger, Action warnLogger, Action debugLogger, Exception>.Action errorLogger, Exception>.Action fatalLogger ) : void
infoLogger Action Information logger.
warnLogger Action Warn Logger
debugLogger Action Debug logger.
errorLogger Exception>.Action Error logger.
fatalLogger Exception>.Action Fatal Logger
리턴 void

InitializeFor() 공개 메소드

public InitializeFor ( string loggerName ) : void
loggerName string
리턴 void

Warn() 공개 메소드

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

Warn() 공개 메소드

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