Skip to content
On this page

Write to a log file

Info

NameValue
Object IDwunderautomation.log
GroupAdvanced

Description

This action writes a line of text to a log file. The log file must reside in a subfolder of WP_CONTENT and the path and name are determined by the Log file field. If the file doesn't already exist, it will be created.

The current date and time are added at the start of the line to provide a timestamp. The timestamp is followed by a single space character and then the content of the Log data field is appended.

Write to log file action in WunderAutomation

Example output:

2022-10-31 13:34:03 1234 abc123 1299
2022-10-31 21:12:14 1236 abc456 576
2022-11-01 11:03: 1234 xyz789 12.99

Released under the MIT License.