Log to file
Append (or overwrite with) a line in a text log file, with optional timestamp and level.
Command in the Log to file toolkit · id ooa.log/write · 7 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Log file path, e.g. logs/invoices.log. | |
| Message | String | Yes | Text to log; ${...} interpolation allowed. | |
| Level | String | No | INFO | Level label. |
| Timestamp | Boolean | No | true | Start the line 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. |