Skip to content

Emojis don't render properly on all terminals #143

Open
@bennycode

Description

@bennycode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions