NAnt SDK Documentation - v0.92 |

# Task.IsLogEnabledFor Method

Determines whether build output is enabled for the given Level.

[Visual Basic]
Public Function IsLogEnabledFor( _
ByVal messageLevel As Level _
) As Boolean
[C#]
public bool IsLogEnabledFor(
Level messageLevel
);

#### Parameters

messageLevel
  The Level to check.

#### Return Value

true if messages with the given Level should be passed on to the logging infrastructure; otherwise, false.

#### Remarks

The threshold of the project is not taken into account to determine whether a message should be passed to the logging infrastructure, as build listeners might be interested in receiving all messages.

#### See Also

Task Class | NAnt.Core Namespace