Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesLog file path, e.g. logs/invoices.log.
MessageStringYesText to log; ${...} interpolation allowed.
LevelStringNoINFOLevel label.
TimestampBooleanNotrueStart the line with the date and time.
OverwriteBooleanNofalseReplace the file instead of appending.
EncodingStringNoutf-8File 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 formatStringNoPattern for the date and time; ISO 8601 with time zone when empty.