C# 클래스 Aspectacular.CallLifetimeLog

Base class collecting entries with text information logged by aspects, proxy, callers and the intercepted method.
파일 보기 프로젝트 열기: vgribok/Aspectacular 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FallbackToTraceLoggingWhenNoProxy bool
callLog List

보호된 메소드들

메소드 설명
Log ( EntryType entryType, string category, string format ) : void

Adds log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogError ( string format ) : void

Adds error log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogErrorWithKey ( string category, string format ) : void

Adds error log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogInformation ( string format ) : void

Adds information log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogInformationData ( string key, object val ) : void

Logs a piece of data as a log entry with key.

LogInformationWithKey ( string category, string format ) : void

Adds information log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogWarning ( string format ) : void

Adds warning log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

LogWarningWithKey ( string category, string format ) : void

Adds warning log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.

비공개 메소드들

메소드 설명
AddEntryIntrenal ( LogEntryOriginator who, Type optionalAspectType, EntryType entryType, string category, string format ) : void
AddLogEntry ( Aspect who, EntryType entryType, string category, string format ) : void
AddLogEntry ( LogEntryOriginator who, EntryType entryType, string category, string format ) : void
GetLogText ( string lineSeparator, Func entrySelector = null ) : string

Generates log text from a collection of log entries specified by entrySelector delegate. If entrySelector is null, all entries are used generate log text. Environment.NewLine as line separator.

메소드 상세

Log() 보호된 메소드

Adds log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected Log ( EntryType entryType, string category, string format ) : void
entryType EntryType
category string
format string
리턴 void

LogError() 보호된 메소드

Adds error log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogError ( string format ) : void
format string
리턴 void

LogErrorWithKey() 보호된 메소드

Adds error log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogErrorWithKey ( string category, string format ) : void
category string
format string
리턴 void

LogInformation() 보호된 메소드

Adds information log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogInformation ( string format ) : void
format string
리턴 void

LogInformationData() 보호된 메소드

Logs a piece of data as a log entry with key.
protected LogInformationData ( string key, object val ) : void
key string
val object
리턴 void

LogInformationWithKey() 보호된 메소드

Adds information log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogInformationWithKey ( string category, string format ) : void
category string
format string
리턴 void

LogWarning() 보호된 메소드

Adds warning log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogWarning ( string format ) : void
format string
리턴 void

LogWarningWithKey() 보호된 메소드

Adds warning log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
protected LogWarningWithKey ( string category, string format ) : void
category string
format string
리턴 void

프로퍼티 상세

FallbackToTraceLoggingWhenNoProxy 공개적으로 정적으로 프로퍼티

If true, logging done by methods will be outputted to the System.Diagnostic.Trace if the methods are called w/o Aspectacular AOP.
When methods that log using ICallLogger or Proxy.CurrentLog are called without AOP Proxy, this flag allows this logging to go to Trace instead of being lost. Set this flag to false for backward compatibility - to have the behavior as of before this change (where logs are thrown away).
public static bool FallbackToTraceLoggingWhenNoProxy
리턴 bool

callLog 공개적으로 프로퍼티

Collection of log entries populated during intercepted call lifecycle. It's populated by the Proxy, Aspects, and sometimes by the method itself or the caller.
public List callLog
리턴 List