NAnt SDK Documentation - v0.92 |

# Task.Log Method (Level, String, Object[])

Logs a formatted message with the given priority.

[Visual Basic]
Overrides Overloads Public Sub Log( _
ByVal messageLevel As Level, _
ByVal message As String, _
ParamArray args As Object() _
)
[C#]
public override void Log(
Level messageLevel,
string message,
params object[] args
);

#### Parameters

messageLevel
  The message priority at which the specified message is to be logged.
message
  The message to log, containing zero or more format items.
args
  An Object array containing zero or more objects to format.

#### Remarks

The actual logging is delegated to the project.

If the Verbose attribute is set on the task and a message is logged with level Verbose, the priority of the message will be increased to Info. when the threshold of the build log is Info.

This will allow individual tasks to run in verbose mode while the build log itself is still configured with threshold Info.

#### See Also

Task Class | NAnt.Core Namespace | Task.Log Overload List