Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.IsLogEnabled Method

Determines whether the given log is enabled.

[Visual Basic]
Protected Overridable Sub IsLogEnabled( _
   ByVal log As ILog _
protected virtual bool IsLogEnabled(
   ILog log


The log instance to check.

Return Value

true if log is for a given log level; otherwise, false.


Default is true when the trace level is enabled. Subclasses may override this to change the level at which logging occurs, or return true to ignore level checks.

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace