question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No colors in the main console [help wanted]

See original GitHub issue

Hi @megahertz again 😄

How can I use colors in the main console? I’m using electron with vue and the logs always are shown in white color:

Screen Shot 2020-05-15 at 13 19 51

log.info('%cRed text. %cGreen text', 'color: red', 'color: green') only works in the browser devtools

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
megahertzcommented, May 20, 2020

Thank you for your feedback. Does the latest version solve the issue?

1reaction
megahertzcommented, May 18, 2020

Could you share code which prints these lines?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switch to disable color output to console · Issue #843 · avajs/ava
it would be good to have a switch that disable colors in console output f.e --no-color it was useful when ava used under...
Read more >
Colorizing text in the console with C++ - Stack Overflow
Colors are not supported by the C++ library. But a library for console handling may/will support colors. E.g. google "ncurses colors". For ...
Read more >
Using console colors with Node.js - LogRocket Blog
In this article, we'll learn how to implement console colors and how to use Chalk, Colors.js, and Color-CLI to help us.
Read more >
A .NET Color Console Helper - Rick Strahl's Web Log
Wanted to set my Windows SetResolution tool to only show on Windows, so Mac or Linux users don't see it, but alas that's...
Read more >
Color output in console - ArchWiki
The basic color encoding provides 8 normal-brightness colors and 8 brighter ... Frequent users of the command line interface might want to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found