Skip to content

Logs & Diagnostics

import { Aside } from ‘@astrojs/starlight/components’;

Ptah writes structured logs to the Electron user-data folder. Logs rotate daily and are kept for 14 days.

OSPath
WindowsC:\Users\<you>\AppData\Roaming\Ptah\logs\
macOS/Users/<you>/Library/Logs/Ptah/
Linux/home/<you>/.config/Ptah/logs/

The current day’s log is named ptah-YYYY-MM-DD.log. Older files are gzipped as ptah-YYYY-MM-DD.log.gz.

Help → Open logs folder reveals the folder in Explorer / Finder / your file manager without having to remember the path.

The default level is info. Raise it for more detail:

  • Settings → Advanced → Log level, or
  • Launch with the PTAH_LOG=debug environment variable:
Terminal window
# Windows (PowerShell)
$env:PTAH_LOG = "debug"; & "C:\Users\$env:USERNAME\AppData\Local\Programs\Ptah\Ptah.exe"
# macOS
PTAH_LOG=debug /Applications/Ptah.app/Contents/MacOS/Ptah
# Linux
PTAH_LOG=debug ./Ptah-*.AppImage

Valid levels: error, warn, info, debug, trace. trace is extremely verbose — use only when debugging.

Ptah is an Electron app, and you can open Chromium DevTools for the webview:

  • Help → Toggle DevTools, or
  • Ctrl+Shift+I (Windows / Linux) / Cmd+Option+I (macOS)

The Console tab shows renderer-side errors, the Network tab shows IPC-style channels, and the Sources tab lets you breakpoint if you’re contributing to Ptah itself.

Electron’s main process logs to the same file as the renderer. Entries are tagged [main] or [renderer] so you can filter:

Terminal window
grep "\[main\]" ptah-2026-04-21.log

Logs are scrubbed of API keys and OAuth tokens before writing, but filesystem paths, workspace names, and file contents can leak. Skim a log before attaching it to a bug report.