Summary
Logs a message with the given priority.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core - Containing Type
- Task
Syntax
public override void Log(Level messageLevel, string format)
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
.
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.
Parameters
Name | Type | Description |
---|---|---|
messageLevel | Level | The message priority at which the specified message is to be logged. |
format | string | The message to be logged. |
Return Value
Type | Description |
---|---|
void |