The task is used to write a message to the build log.

Attributes

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
  • warning
  • info
  • verbose
  • debug
The levels are listed in increasing order of severity; 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

Notes

Examples

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

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