Skip to content

Log with electron-log 5 (#375) - #380

Merged
jtklein-agents merged 1 commit into
spec/370-electron-build-and-runtime-packages-currentfrom
375-log-with-electron-log-5
Nov 25, 2026
Merged

jtklein-agents merged 1 commit into
spec/370-electron-build-and-runtime-packages-currentfrom
375-log-with-electron-log-5

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Closes #375

Summary

 package.json
-  "electron-log": "^4.4.8",
+  "electron-log": "^5.4.4",

No source changes. autoUpdater.logger = log (src/main/index.ts) and the log.info calls in src/main/updates.ts use API that v5 keeps. v5's main-process file transport writes main.log under app.getPath('logs'): ~/Library/Logs/raxmlGUI/ on macOS, userData/logs/ on Windows and Linux. That matches 2.0.19.

Evidence

Run on macOS:

  • Before: electron-log 4.4.8, yarn typecheck, yarn test, yarn test:e2e all pass.
    After: electron-log 5.4.4:
    • yarn typecheck: clean
    • yarn test: 67 files, 474 tests pass, including src/pack.test.ts (node_modules/electron-log/package.json is still in the pack)
    • yarn test:e2e: 4/4 pass
    • New lines appear in ~/Library/Logs/raxmlGUI/main.log (same path as before)

Ubuntu and Windows: left to CI.

Note: in a worktree cut from this spec branch, yarn lint picks up master's flat eslint.config.js from the parent checkout. It passes with ESLINT_USE_FLAT_CONFIG=false. This is not caused by this change.

Merge Danger

Door: two-way

Revert the version bump to roll back. Log files on disk are untouched.

Blast Radius: logging

If the path were wrong, users' main.log would move, and bug reports that point at it would miss new lines. On macOS, a real run confirmed the path is unchanged.

🤖 Generated with Claude Code

Bump electron-log to ^5.4.4. The main-process API used here is unchanged
and the file transport still writes main.log under app.getPath('logs').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit 4dfc76e into spec/370-electron-build-and-runtime-packages-current Nov 25, 2026
11 of 12 checks passed
@jtklein-agents jtklein-agents mentioned this pull request Nov 25, 2026
5 tasks
@jtklein-agents
jtklein-agents deleted the 375-log-with-electron-log-5 branch November 26, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant