Task.

Log(Level, string, Object[]) Method

Summary

Logs a formatted message with the given priority.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Containing Type
Task

Syntax

public override void Log(Level messageLevel, string format, params Object[] args)

Remarks

The actual logging is delegated to the project.

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

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

Parameters

Name Type Description
messageLevel Level The message priority at which the specified message is to be logged.
format string The message to log, containing zero or more format items.
args Object[] An System.Object array containing zero or more objects to format.

Return Value

Type Description
void