Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-log

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-log - npm Package Versions

13
16

5.1.0-beta.2

Diff

megahertz
published 5.1.0-beta.1 •

megahertz
published 5.0.5-beta.2 •

megahertz
published 5.0.5-beta.1 •

megahertz
published 5.0.4 •

megahertz
published 5.0.3 •

megahertz
published 5.0.2 •

megahertz
published 5.0.1 •

megahertz
published 5.0.0 •

Changelog

Source

5.0.0

Core

  • Now it's a time to use modern ES instead of ES5. It was a joy to use old-fashioned ES5, but since the library grows it becomes harder to follow its restrictions. Starting from v5 the library requires Node.js 14+ or Electron 13 at least.
  • Now a renderer process just sends log data to the main through IPC, so only the main logger can be configured. See initialize for more information
  • A new tranforms property is added for each transport. It allows to configure transformations preformed on message data. See transforms for more information.
  • log.create(logId) is replaced by log.create({ logId })

File transport

  • archiveLog options is renamed to archiveLogFn
  • resolvePath options is renamed to resolvePathFn
  • All logs are written to main.log file. If you want to write renderer logs to a separated file, you can do that by overriding resolvePathFn

Console transport

  • writeFn callback is added. By default, it just passes message.data to console.log function

Remote transport

  • onError is renamed to processErrorFn({ error, message, request })
  • transformBody is renamed to makeBodyFn({ logger, message, transport })

Electron event logger

To simplify app debugging the Electron event logging was implemented.

megahertz
published 5.0.0-rc.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc