The task is used to write a message to the build log.
The task supports Build Extensions Debugging Attributes, as well as, its own task specific attributes. Click on a link for more information on the common attributes.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| level |
The level at which this message is reported. One of the following:
error and warning messages will always be reported; debug messages will only be reported if debug mode in enabled. This attribute is optional. The default is info.
|
No |
| text | Text for the message. | Yes |
| timestamp |
Specifies whether or not 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 | Specifies more message output. The default is false. | No |
<xt:logmessage>example of nested text</xt:logmessage>
If both the text attribute and nested text are specified, nested text will take precedence.
Write a message to the log at verbose level with a time stamp
<xt:logmessage level="verbose" text="**** @{message}" timestamp="true"/>