Echo task: Output System Information

Source: Internet
Author: User
Tags echo message

The echo task outputs the corresponding information based on the logger (log) or listener (listener) level. It is equivalent to system. Out in Java to output information. The echo task has the following attributes:

(1) message: used to define the information to be output. This attribute is required.

(2) file: used to define a file. This file is used to receive the output information defined by the message. It takes effect only when it is set to output the information to the receiving file.

(3) append: used to specify whether information is output to the specified file. The default value is false.

(4) level: Specifies the level of this information. Optional values: error, warning, info, verbose, or debug.

Echo tasks are easy to use. For example, to define the output of a message, the Code is as follows:

<Echo message = "this is a simple message, out print by ECHO task! "/>

When you need to output information to a specific file, you can write the echo task as follows:

<Echo message = "this is a simple message, out print by ECHO task! "File ="/logs/messge. log "APPEND =" true "/>

The purpose of this example is to output the information to the/logs/message. Log File, rather than directly output the information to the command line.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.