logplease icon indicating copy to clipboard operation
logplease copied to clipboard

Colors do not work properly in an electron renderer process

Open robgonnella opened this issue 7 years ago • 0 comments

Steps to reproduce:

  • git clone https://github.com/electron/electron-quick-start
  • cd electron-quick-start
  • npm install --save-dev logplease
  • open renderer.js and 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.js and uncomment the line that says mainWindow.webContents.openDevTools()
  • npm install
  • npm start

Expected: Log should have appropriate colors

Actual: Log appears to be trying to use terminal style colors

screen shot 2018-07-22 at 8 17 29 pm

robgonnella avatar Jul 23 '18 03:07 robgonnella