Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimpleLoggingAdvice.IsLogEnabled Method

Determines whether the given log is enabled.

[Visual Basic]
Protected Overrides Sub IsLogEnabled( _
   ByVal log As ILog _
protected override 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

SimpleLoggingAdvice Class | Spring.Aspects.Logging Namespace