Skip to content

feat: adopt structured logging with electron-log#62

Merged
ianphil merged 1 commit intoipdelete:mainfrom
spboyer:feat/50-structured-logging
Feb 13, 2026
Merged

feat: adopt structured logging with electron-log#62
ianphil merged 1 commit intoipdelete:mainfrom
spboyer:feat/50-structured-logging

Conversation

@spboyer
Copy link
Copy Markdown
Contributor

@spboyer spboyer commented Feb 13, 2026

Replace console.log/warn/error with electron-log across the codebase. Main process files use electron-log with scoped loggers for structured output with log levels, file rotation, and timestamps. Renderer files use a lightweight scoped logger wrapper.

Changes:

  • Added electron-log dependency
  • Created src/main/services/Logger.ts (main process logger)
  • Created src/renderer/logger.ts (renderer logger)
  • Migrated ~51 console.* calls across ~20 files to scoped loggers

Fixes #50

@spboyer spboyer force-pushed the feat/50-structured-logging branch 3 times, most recently from 59e5d90 to c44169a Compare February 13, 2026 16:56
Replace console.log/warn/error with electron-log across the codebase.
Main process files use electron-log with scoped loggers for structured
output with log levels, file rotation, and timestamps. Renderer files
use a lightweight scoped logger wrapper.
@spboyer spboyer force-pushed the feat/50-structured-logging branch from c44169a to 0ad2b3c Compare February 13, 2026 16:57
Copy link
Copy Markdown
Contributor

@ianphil ianphil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid PR — clean mechanical replacement with proper test mocking. No behavioral changes.

@ianphil ianphil merged commit 291c536 into ipdelete:main Feb 13, 2026
1 check passed
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.

Adopt Structured Logging and Log Levels

2 participants