Every log in one place, and who calls whom

Superlog reads every runner’s output as one timeline or side by side. Live wire draws the services as a picture and the calls between them as they happen, with nothing to set up.

4 min read · Video walkthrough

Before you start

  • Two or more runners going in the Run panel. Superlog reads what they print; Live wire needs an API among them that speaks HTTP on this Mac.
  • No model, no agent, no SDK in your code. Everything here is read from the processes and the network on your Mac.
An API, a database and a phone build run from the Run panel. Live wire draws all three at once; a web page and an iOS app call the API at its own port and the calls travel on the picture. The guessed phone caller is matched to its runner, and one call is read whole and sent again.

Read every log as one#

  1. Open Superlog.

    With runners going, click All runners in the Run panel. Every runner’s output arrives in one list, ordered by when each line was written, each line marked with its runner.

  2. Merged, or side by side.

    Merged timeline keeps one list; Runner lanes gives each runner a column with its own search and toolbar. Untick Include <name> logs to leave a noisy one out.

  3. Search across them.

    The search box finds a request id, an order number or an error in every runner at once and counts the matches. In lanes, each lane searches on its own.

  4. Give it the room.

    Expand Superlog to full screen, and Esc to come back. Searches, the lanes and what’s left out stay as they were.

  5. Go from an error to its line.

    Select a stack frame’s line and choose Source: the file opens in the editor at that line. Frames from the JVM, Node, Python, Go, Rust, Swift and Android are links.

Live wire: watch the services talk#

Logs say what each program wrote. They don’t show the conversation: which screen called which endpoint, how long it waited, and what came back. Open Live wire (the LIVE button beside Stop) draws it over the logs, in full screen. Drag the divider (Resize the logs) to give either side more room.

Every runner is drawn at once, before any call, by what it is:

KindRecognised by
Web appA Node runner with a dev server’s command
Mobile appAn Xcode or Android runner, or one named for a phone or simulator
APIA server that listens on a port, or names one in its command
WorkerA process that listens on nothing once it settles
Queue, database, cacheThe product its command names, or its usual port: SQS (ElasticMQ), Kafka, RabbitMQ, PostgreSQL, Redis…

When the web app or the simulator calls the API, the call travels on the picture to the endpoint it hit (GET /orders/{id}), with its status. /orders/42 and /orders/43 are the same endpoint.

How it sees the calls#

Nothing is installed in your app and nothing is pointed anywhere. When the Run panel starts an API whose port it knows (from its address, a word of its command such as --port=8080, or where it listened last time), it starts the API on a free port and answers on 8080 itself, forwarding every request and answer unchanged and recording both. Your web app, its dev server’s proxy and the simulator go on calling localhost:8080 as before.

If the API ignores the port it was given, it keeps its own and the wire stands beside it instead (:18080 for :8080); its block says so. An API seen listening for the first time is heard from its next start; its block says to restart it.

Who is calling#

A caller is exact when it can be and a guess, said to be one, when it can’t. A page whose Origin is a runner’s address is that runner. Otherwise the caller is guessed from how it calls: a browser is Web, iOS’s and Android’s networking stacks are Mobile, curl and Postman are a Tool, a server library is a Service.

  1. Pick a block.

    Click a guessed caller such as iOS app, and answer Which runner is iOS app? with its runner. From then on its calls come from that runner’s block.

  2. Say what a runner is.

    Pick a runner and choose What <runner> is (Web app, Mobile app, API, Worker, Queue, Database, Cache, Storage) when the guess is wrong, and rename it with Runner name.

  3. Name a caller from a script.

    Send an X-Wire-Caller header and the call is drawn from that name, exactly:

    curl -H 'X-Wire-Caller: smoke test' http://localhost:8080/orders/42

Read a call, and send it again#

Open a call from the picture or the Calls list: its Request and Response tabs show the method, path, headers and body, whole, with its status and how long it took. Replay sends the same request from the same caller and says what came back.

Current limits#

  • Kept in memory, bounded: about the last 5,000 calls and 64 MiB of bodies. A body is kept up to 256 KiB for reading; the bytes forwarded are never cut.
  • HTTP/1.1 to localhost. WebSocket upgrades are refused with a 501 for now; HTTPS isn’t intercepted (nothing on your Mac needs TLS to reach localhost).
  • Only calls through the wire. An API not started from the Run panel, and the calls your backend makes onward (to its database, to other services), aren’t drawn yet; those lines stay faint.
  • Moving an API changes how it starts. Its own logs name the port it was given, and links it writes with its own address carry that port.

What leaves your Mac#

Next steps#

Something unclear or out of date? Tell us; a person on the team reads every note.

Search every guide: features, settings, keys and troubleshooting.

Try