logplease
logplease copied to clipboard
Colors do not work properly in an electron renderer process
Steps to reproduce:
- git clone https://github.com/electron/electron-quick-start
- cd electron-quick-start
- npm install --save-dev logplease
- open
renderer.jsand add the following lines
const Logger = require('logplease');
const log = Logger.create('[example]');
log.info('Colors should renderer properly in electron browser window');
- open
main.jsand uncomment the line that saysmainWindow.webContents.openDevTools() - npm install
- npm start
Expected: Log should have appropriate colors
Actual: Log appears to be trying to use terminal style colors