Log variables to file
Write one name=value line per variable to a log file, to record the state of a run; credentials are written as ****.
Command in the Log to file toolkit · id ooa.log/log_variables · 8 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Log file path, e.g. logs/state.log. | |
| Variables | Dictionary | No | Names and values to write, e.g. {"invoice": "$invoice", "total": "$total"}; may be empty when all_of_type is set. | |
| Title | String | No | Heading line written before the variables. | |
| Timestamp | Boolean | No | true | Start the heading with the date and time. |
| Overwrite | Boolean | No | false | Replace the file instead of appending. |
| Encoding | String | No | utf-8 | File encoding: utf-8, utf-16le (Unicode, written with a byte-order mark) or ansi (the runner's code page). Match the existing file when appending. |
| Timestamp format | String | No | Pattern for the date and time; ISO 8601 with time zone when empty. | |
| All of type | String | No | Also write every variable of the bot declared with this type (all = every variable), in declaration order, after the ones listed in variables. Credentials are written as ****. |
Outputs
| Output | Type | What it is |
|---|---|---|
| lines | Number | Number of variable lines written. |