npm / electron-log
electron-log
What changed in electron-log 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
8 breaking3 new APIs and options
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initelectron-log 511 changes
Breaking changes 8
The file transport option
archiveLogwas renamed toarchiveLogFn.The call signature changed from
log.create(logId)tolog.create({ logId }).All logs are now written to main.log; renderer logs can be directed to a separate file by overriding
resolvePathFn.The remote transport option
transformBodywas renamed tomakeBodyFn({ logger, message, transport }).The library now requires Node.js 14+ or Electron 13 at least.
The remote transport option
onErrorwas renamed toprocessErrorFn({ error, message, request }).Renderer processes now send log data to the main process through IPC, so only the main logger can be configured.
The file transport option
resolvePathwas renamed toresolvePathFn.
New APIs and options 3
Electron event logging was implemented to simplify app debugging.
A property for each transport configures transformations performed on message data.
The console transport adds a
writeFncallback, which by default passesmessage.datatoconsole.log.