Skip to main content

๐Ÿ“‹ Logging Tools

Utilities for managing logs during execution.


startlogโ€‹

Creates a file to save log content.

ArgumentDescription
FILELog file path
startlog "/sdcard/mylog.txt"

savelogโ€‹

Sends text to the log file created by startlog.

ArgumentDescription
TEXTText to log (multiple allowed)
savelog "Starting process" "Step 1 complete"

endlogโ€‹

Stops logging started with startlog.

endlog
note

After endlog, savelog, echolog, and printlog are ignored.


echologโ€‹

Prints text to stderr and the log file.

ArgumentDescription
TEXTText to log (multiple allowed)
echolog "Error occurred" "Check log"

printlogโ€‹

Prints text to the screen and the log file.

ArgumentDescription
TEXTText to log (multiple allowed)
printlog "Progress update" "Step 2 complete"