Write to Log Action Icon

 

Write to Log Action

Declaration

 <AMWRITETOLOG LOGLEVEL="options" TEXT="text">

See Also

Stop Task, Write to Log, Enable/Disable Task, Backup AutoMate

Description

Logs the specified text to the AutoMate event log.

Practical Usage

Used to log a user generated message to the AutoMate event log. This would normally be used if the developer wished to convey some important information to the AutoMate administrator by including a message in the log. AutoMate Administrators can access the AutoMate event log from the Task Administrator by selecting View -> Log or clicking the Log button from the toolbar.

Parameters

General Tab

Logging Level

Options, Optional Default "user"
MARKUP: LOGLEVEL="verbose"

Specifies how the log entry should be categorized in the Event Log.

The Available Options are:

NOTE: In order for verbose entries to appear in the AutoMate log,

Text to write to log

yes/no, Optional Default Yes
MARKUP: TEXT="There was a problem getting the data" 

Specifies the text that should be written to the AutoMate Log.

Notes

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

<AMWRITETOLOG LOGLEVEL="error" TEXT="There was a problem executing the application" />