Echoes a message to the current loggers and listeners which means standard out unless overridden. A level can be specified, which controls at what logging level the message is filtered at.
The task can also echo to a file, in which case the option to append rather than overwrite the file is available, and the level option is ignored
Additionally, the task can echo the contents of a nested fileset element.
Table B.16: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
msg | String | The string that is to be send to the output. | n/a | Yes |
message | String | Alias for msg . | n/a | Yes |
file | String | The file to write the message to. | n/a | No |
append | Boolean | Append to an existing file? | false | No |
level | String | Control the level at which this message is reported. One of
error , warning ,
info , verbose ,
debug . | info | No |
<echo msg="Phing rocks!" /> <echo message="Binarycloud, too." /> <echo>And don't forget Propel.</echo> <echo file="test.txt" append="false">This is a test message</echo>