logger4nodejs

A simple library for logging messages to console in a colorful way to make the debugging process easier

Usage no npm install needed!

<script type="module">
  import logger4nodejs from 'https://cdn.skypack.dev/logger4nodejs';
</script>

README

logger4nodejs

A basic, simple logger library for node js

Usage

const logger = require('logger4nodejs');

logger.log('Default Logging Style');
  • logger.log() : Default logging style

  • logger.debug() : Bright green color text. No icon.

  • logger.warn() : Bright yellow color text with an alert icon(⚠) before the message.

  • logger.error() : Bright red color text with a 'cross' icon(✖) before the message.

  • logger.info() : Bright blue color text with an info icon(ℹ️) before the message.


GitHub · Report Bugs · Contribute