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 _
)
[C#]
protected override bool IsLogEnabled(
   ILog log
);

Parameters

log
The log instance to check.

Return Value

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

Remarks

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