๐ Logging Tools
Utilities for managing logs during execution.
startlogโ
Creates a file to save log content.
| Argument | Description |
|---|---|
FILE | Log file path |
startlog "/sdcard/mylog.txt"
savelogโ
Sends text to the log file created by startlog.
| Argument | Description |
|---|---|
TEXT | Text 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.
| Argument | Description |
|---|---|
TEXT | Text to log (multiple allowed) |
echolog "Error occurred" "Check log"
printlogโ
Prints text to the screen and the log file.
| Argument | Description |
|---|---|
TEXT | Text to log (multiple allowed) |
printlog "Progress update" "Step 2 complete"