Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.GetLoggerForInvocation Method

Gets the appropriate log instance to use for the given IMethodInvocation.

[Visual Basic]
Protected Overridable Sub GetLoggerForInvocation( _
   ByVal invocation As IMethodInvocation _
protected virtual ILog GetLoggerForInvocation(
   IMethodInvocation invocation


The method invocation being logged.

Return Value

The ILog instance to use.


If the UseDynamicLogger property is set to true, the ILog instance will be for the target class of the IMethodInvocation, otherwise the log will be the default static logger.

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace