Skip to content

leo logs

Show the service log, or filter it for a specific supervised agent.

Usage

leo logs [name] [-n <lines>] [-f]

Description

Tails the daemon/service log stored under ~/.leo/state/. Passing a name filters the stream to lines emitted by that agent — including the agent backing a runtime: persistent task.

Name arguments support tab-completion (see leo completion).

Flags

Flag Description
-n, --tail <N> Number of lines to show from the tail. Defaults to 50.
-f, --follow Stream new output as it arrives.

Examples

# Last 50 service log lines
leo logs

# Last 200 lines for a specific agent
leo logs coding-assistant -n 200

# Follow an agent's log in real time
leo logs coding-assistant -f

See Also