logMessage

The logMessage task writes a message to the build log.

The following table describes logMessage attributes.

Attribute Description Required

level

The level at which this message is reported. One of "error", "warning", "info", "verbose", or "debug". The levels are listed in increasing order of severity; "error" and "warning" messages are always reported; "debug" messages are only reported if debug mode is enabled. This attribute is optional. The default is "info".

No

text

Text for the message.

Yes

timestamp

Specifies whether to prefix the message text with a time stamp. Valid values are "true" and "false". The default is "false". The format of the time stamp is: yyyy-MM-dd HH:mm:ss:SSS.

No

verbose

More message output. The default value is false.

No

Note: This task supportes nested text. For example:
<im:logmessage>example of nested text</im:logmessage>
If both the text attributes and nested text are specified, nested text will take precedence.

Example

Write a message to the log at verbose level with a time stamp


<im:logmessage level="verbose" text"**** @{message}" timestemp="true"/>