C# 클래스 Patterns.Logging.LoggingInterceptor

Provides an IInterceptor implementation that uses ILog to log Trace, Debug, Info, and Error events throughout the execution of intercepted invocations.
상속: Patterns.Interception.DelegateInterceptor
파일 보기 프로젝트 열기: patterns-group/code-patterns

공개 메소드들

메소드 설명
LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter ) : System

Initializes a new instance of the LoggingInterceptor class.

LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter, bool>.Func condition ) : System

Initializes a new instance of the LoggingInterceptor class.

보호된 메소드들

메소드 설명
LogAfter ( IInvocation invocation ) : void
LogBefore ( IInvocation invocation ) : void
LogError ( IInvocation invocation, Exception error ) : ExceptionState
LogFinally ( IInvocation invocation ) : void

비공개 메소드들

메소드 설명
Initialize ( bool>.Func condition ) : void

메소드 상세

LogAfter() 보호된 메소드

protected LogAfter ( IInvocation invocation ) : void
invocation IInvocation
리턴 void

LogBefore() 보호된 메소드

protected LogBefore ( IInvocation invocation ) : void
invocation IInvocation
리턴 void

LogError() 보호된 메소드

protected LogError ( IInvocation invocation, Exception error ) : ExceptionState
invocation IInvocation
error System.Exception
리턴 Patterns.ExceptionHandling.ExceptionState

LogFinally() 보호된 메소드

protected LogFinally ( IInvocation invocation ) : void
invocation IInvocation
리턴 void

LoggingInterceptor() 공개 메소드

Initializes a new instance of the LoggingInterceptor class.
public LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter ) : System
config ILoggingConfig The config.
logFactory ILog>.Func The log factory.
formatter ILogValueFormatter The formatter.
리턴 System

LoggingInterceptor() 공개 메소드

Initializes a new instance of the LoggingInterceptor class.
public LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter, bool>.Func condition ) : System
config ILoggingConfig The config.
logFactory ILog>.Func The log factory.
formatter ILogValueFormatter The formatter.
condition bool>.Func The intercept condition.
리턴 System