Skip to main content

log_actions

Function log_actions 

Source
pub fn log_actions(on: bool)
Expand description

Log every action the app receives to stdout, in the recorder’s vocabulary, the same lines a recording echoes, minus the recording:

dayscript ▸ navigate → dates  "Date & time"
dayscript ▸ tap list-shuffle  "Shuffle"
dayscript ▸ select unit-picker = 1  "Units"

It hooks the same two observers a recording does (start), so it sees exactly what the app sees, on every backend, with no per-toolkit code. It stores neither steps nor a file, so no buffer grows and it is safe to leave on for an app’s whole life. exclude_prefix applies, so a UI’s own scripting controls stay out of the log as they stay out of a recording.

Independent of recording. Turning logging off while a recording is live leaves the recording alone, and stopping a recording leaves logging on.