Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.InvokeUnderLog Method

Subclasses must override this method to perform any tracing around the supplied IMethodInvocation.

[Visual Basic]
Protected MustOverride Sub InvokeUnderLog( _
   ByVal invocation As IMethodInvocation, _
   ByVal log As ILog _
)
[C#]
protected abstract object InvokeUnderLog(
   IMethodInvocation invocation,
   ILog log
);

Parameters

invocation
The method invocation to log
log
The log to write messages to

Return Value

The result of the call to IMethodInvocation.Proceed()

Remarks

Subclasses are resonsible for ensuring that the IMethodInvocation actually executes by calling IMethodInvocation.Proceed().

By default, the passed-in ILog instance will have log level "trace" enabled. Subclasses do not have to check for this again, unless they overwrite the IsInterceptorEnabled method to modify the default behavior.

Exceptions

Exception TypeCondition
Exception If any of the interceptors in the chain or the target object itself throws an exception.

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace