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.

Emojis don't render properly on all terminals

See original GitHub issue

Emojis cannot be rendered on every terminal. This causes the issue that log messages will look strange and don’t have a common alignment.

You can see the issue by running my demo code in different terminals:

NODE_DEBUG=* node index.js

const logdown = require('logdown')
const logger = logdown('MyLogger')

logger.debug('Type "debug"')
logger.error('Type "error"')
logger.info('Type "info"')
logger.log('Type "log"')
logger.warn('Type "warn"')

Because the output isn’t consistent across platforms, we should replace emojis with standard ASCII symbols (which can be rendered on most of the systems).

I also noticed that logger.debug is not printed on the console. How can I get debug messages? I already used NODE_DEBUG=*.

Command-line interface (Windows)

cmd

PowerShell (Windows)

powershell

Ubuntu Bash (Linux Subsystem on Windows 10)

ubuntu-bash

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
caiogondimcommented, Mar 20, 2018

I’m cool with that

0reactions
bennycodecommented, Mar 19, 2018

The easiest to implement (and already useful) config would be turning it on or off completely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some terminal can't display emoji correctly - Stack Overflow
I have several terminals installed. But only some of them can display all Unicode characters correctly. For example, classic emoji symbol ...
Read more >
terminal does not show emoji correctly : IDEA-161919
Hi, I'm usign this (https://github.com/omnidan/node-emoji) to render emojis in node applications. In VS Code console all look great, in WebStorm(PhpStorm) ...
Read more >
emojis are not displaying in the characters app & brave ...
what fonts are required to be installed for them to work properly. enter image description here. display · fonts · gui · emoji....
Read more >
Terminal I/O on Windows - Swift Forums
Complex characters (curly quotes, emoji, ...) don't render properly in Windows terminals. At first, I tried executing chcp 65001 prior to ...
Read more >
F.A.Q. - Wez's Terminal Emulator
Some (but not all) Emoji don't render properly. To some extent this issue can manifest in a similar way to the LANG and...
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