megahertz / electron-log

Simple logging module Electron/Node.js/NW.js application. No dependencies. No complicated configuration.
MIT License
1.27k stars 124 forks source link

Message duplicated in dev console #407

Closed MuhKuh7 closed 3 months ago

MuhKuh7 commented 3 months ago

In the main process I use:

let log = require("electron-log")
log.initialize();

And in the renderer:

import log from "electron-log/renderer";
log.info('Info');
log.error('Error');

In the dev console the logs are somehow duplicated:

16:45:38.223 › Info
16:45:38.223 › Error
16:45:38.223 › Info
16:45:38.223 › Error
MuhKuh7 commented 3 months ago

Thx for the fast fix!!