Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 603 Bytes

migrate-v3.md

File metadata and controls

14 lines (11 loc) · 603 Bytes

Migration from v2 to v3

npm install electron-log@latest

In v3 each process is configured separately. So if you change some options, you should apply the changed both in main and renderer processes.

Another changes:

  • require 'electron-log/main' and 'electron-log/renderer' is deprecated.
  • transports.file.level is default to 'silly'.
  • transports.file.stream and streamConfig options are removed. Instead, you can use one of the following options: file, fileName, writeOptions.
  • rendererConsole and mainConsole transports are disabled by default for a packaged application.