Skip to content
Back to skills

Studio Dev Logs

ASecurity

Read Studio main-process logs written during local development. Use when you want to inspect what happened during a Studio session — errors, warnings, or info messages from the Electron main process.

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
toolsbashnodegit

Works with

  • terminal

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add instrument-org/instrument --skill studio-dev-logs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Studio Dev Logs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Studio Dev Logs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/instrument-org-studio-dev-logs/badge)](https://www.skillsdirectory.com/skills/instrument-org-studio-dev-logs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: studio-dev-logs
description: Read Studio main-process logs written during local development. Use when you want to inspect what happened during a Studio session — errors, warnings, or info messages from the Electron main process.
---

# Studio Dev Logs

When Studio runs in development (`NODE_ENV=development`), the Electron main process writes every `console.debug/info/warn/error` call to a newline-delimited JSON file under `apps/studio/.logs/`. The terminal running `pnpm dev` shows only warnings and errors; `STUDIO_LOG_LEVEL=info` (or any electron-log level) shows more there. The file always gets everything.

## File layout

```plaintext
apps/studio/.logs/
  2026-06-01T20-03-00Z.jsonl   ← one file per boot, named by start time
  2026-06-01T21-14-55Z.jsonl
  current.jsonl -> 2026-06-01T21-14-55Z.jsonl   ← symlink to the most recent boot (macOS/Linux only)
```

## Reading logs

On macOS/Linux, read `current.jsonl` for the most recent session:

```bash
cat apps/studio/.logs/current.jsonl
```

On Windows there is no symlink — pick the newest timestamped file instead:

```bash
ls -t apps/studio/.logs/*.jsonl | head -1
```

Each line is a JSON object:

```jsonl
{"level":"info","time":"2026-06-01T21:14:55.123Z","msg":"Quit teardown started"}
{"level":"error","time":"2026-06-01T21:15:02.456Z","msg":{"name":"Error","message":"connect ECONNREFUSED","stack":"Error: connect..."}}
```

Fields:

- `level` — `debug` | `info` | `warn` | `error`
- `time` — ISO 8601 timestamp
- `scope`: the scoped logger's name (`boot`, `appUpdater`, `rpc`, ...). Absent for plain `console.*` calls.
- `source` — present only on entries forwarded from the **renderer** process (value `"renderer"`). Absent on main-process entries.
- `msg` — string for plain messages; object for `Error` instances (`name`, `message`, `stack`, optional `cause`); array when multiple arguments were passed

What the person did in the app (folders opened, file actions, settings, errors shown) is also in the dev log as entries with scope `Actions`, so you can read what they did between the main process's lines. The action log itself is in the workspace's machine folder, a file per local day: `<userData>/machine/<local id>/actions/<YYYY-MM-DD>.jsonl`, where a development run's userData is `Instrument (Dev)`. The pages they visited and the files they opened are not in it: the app's history keeps those, in `browser/history.db` in the same folder.

Most entries are from the Electron **main** process. Renderer errors (uncaught exceptions, unhandled promise rejections, and explicit `logger.error` calls) are forwarded over IPC and tagged `"source":"renderer"`; other renderer `console.*` output still only lands in the DevTools console, not this file.

Filter to errors only:

```bash
grep '"level":"error"' apps/studio/.logs/current.jsonl | jq .
```

Filter to renderer-forwarded entries:

```bash
grep '"source":"renderer"' apps/studio/.logs/current.jsonl | jq .
```

Tail the live log while Studio is running:

```bash
tail -f apps/studio/.logs/current.jsonl | jq .
```

## Notes

- These JSONL logs are only written when `NODE_ENV=development`. Packaged builds use rotating diagnostic logs under the app's userData directory.
- The `.logs/` directory is gitignored.
- Each boot keeps up to 10 earlier boot files within a 128 MiB directory budget, reserving 8 MiB for its own file. Each boot stops writing at 8 MiB of UTF-8 output. Oversized entries are truncated, and output is dropped while pending writes reach 1 MiB.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.