Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.IsInterceptorEnabled Method

Determines whether the interceptor is enabled for the specified invocation, that is, whether the method InvokeUnderLog is called.

[Visual Basic]
Protected Overridable Sub IsInterceptorEnabled( _
   ByVal invocation As IMethodInvocation, _
   ByVal log As ILog _
protected virtual bool IsInterceptorEnabled(
   IMethodInvocation invocation,
   ILog log


The invocation.
The log to write messages to

Return Value

true if [is interceptor enabled] [the specified invocation]; otherwise, false.


The default behavior is to check whether the given ILog instance is enabled by calling IsLogEnabled, whose default behavior is to check if the TRACE level of logging is enabled. Subclasses

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace