Skip to content
BENIBIX Learn

claude logs Command

Also known as claude logs, Background session output

It prints what a background job did just now.

Think of it like

It is like a peek through the window at a friend who is at work.

Example

Emma has five sessions running. Before she picks which one to open, she runs claude logs on each to see which are stuck.

Why it matters

Looking costs nothing. You only open a session when it needs you.

Definition

claude logs prints the recent output of a background session, by its ID or its name. You read what it has been doing without opening the chat. It is a quick check from the shell, or from a script that watches several sessions.

Example code

bash
claude logs 7c5dcf5d
Show this session's recent output.
logs reads one session's output and leaves it running.

Common mistake

Expecting the whole history. It shows recent output. The full chat is in the session itself.

Key takeaways

  1. 1
    Recent output. Not the full chat.
  2. 2
    No attach. Just a look.
  3. 3
    By ID or name. From any shell.

Learn it properly