Skip to Content
tloop

Logs

Where each run's output goes, and how to read it.

tloop logs k3x9qa --last 3

That prints the last three runs of the task, oldest first. Without --last, you get the newest run only.

One file per run

Each run writes ~/.tloop/logs/<id>/<YYYYMMDD-HHMMSS>.log, named by when it started on your Mac's clock. A file looks like this:

[20261130-091500] Running task: k3x9qa
Cmd: df -h /
Shell: /bin/zsh
---
(the command's output, stdout and stderr together)
---
[20261130-091500] Task completed with exit code: 0

tloop info <id> counts the files as its total runs, and shows the newest one's timestamp as its last run.

A run that was skipped still writes a file, with one line that says why:

  • Task disabled, skipping: the task is stopped. See Troubleshooting.
  • Outside working hours (9-21), skipping: the run fell outside --hours.

launchd-err.log

The same folder can hold launchd-err.log. It gets errors from tloop's runner script itself, not from your command, for example a Python error when ~/.tloop/config.json isn't valid JSON. tloop logs leaves it out, so read it directly:

cat ~/.tloop/logs/k3x9qa/launchd-err.log

Old logs

tloop never deletes a log, and tloop remove keeps them too. A daily tloop task can clear out files older than 30 days:

tloop add --name prune-logs --cmd "find ~/.tloop/logs -name '*.log' -mtime +30 -delete" --interval 1d

On this page