Write to Log files

This activity allows you append additional information in log files and categorize the appended data as debug message, error, warning or just an information. A log file stores events, messages and other communications logged during the execution.

Instead of updating the log file manually, you can use the Write to Log file activity to write the additional execution data automatically in to the log file. It ensures that unwanted data is not written in the log file. Additionally, you can avoid any human error while making changes into the log file.

Using Write to Log file Activity

1.    In the Canvas Tools pane, click Assign and Write to expand the tool and view the associated activities.

2.    Drag the Write to Log file activity and drop on to the Flowchart designer on the  Canvas.

 

 

3.    In the Message to Log field, enter the message in double quotes to update in the application log file.

4.    From the Level/ Severity drop down, select the required level.  The level or severity defines the category and purpose of the message written in the log file. Available options are:

·       Debug

·       Information

·       Warning

·       Error

A Write to Log file activity is created. The warning sign disappears once you provide the required inputs.

Write to Log file Properties

The properties of Write to Log file activity are listed in the following table and can be edited in the Properties grid on the right pane.


Property Name

Usage

Control Execution

Ignore Error

When this option is set to Yes, the application ignores any error while executing the activity.

If set to NA, it bypasses the exception (if any) to let the automation flow continue; however, it marks the automation status as failure, in case of an exception.

By default, this option is set to No.

Delay

Wait After

Specify the time delay that must occur after the activity is executed. The value must be in milliseconds.

Wait Before

Specify the time delay that must occur before the activity is executed. The value must be in milliseconds.

Misc

Breakpoint

Select this option to mark this activity as the pause point while debugging the process. At this point, the process freezes during execution allowing you to examine if the process is functioning as expected.

In large or complex processes, breakpoints help in identifying the error, if any.

Commented

Select this option to mark this activity as inactive in the entire process. When an activity is commented, it is ignored during the process execution.

DisplayName

The display name of the activity in the flowchart designer area. By default, the name is set as Write to Log. You can change the name as required.

On This Page Hide

   

   Related Topics

Step-By-Step Guide to Use Add Log Fields to Add Data to the Log File