nodejs-color-logger

3.0.1 • Public • Published

nodejs-color-logger


Simple and easy to use console log utilty for node.js applications

Functions

  • .color('color')
  • .style('style')
  • .type('type')
  • .timestamp('format [optional]')
  • .log(...args)

Examples

logger.color('green').log('Connected to Socket')

logger.type('debug').color('brightGreen').log('Connected to Socket')

logger.style('underscore').log('Connected to Socket')

logger.type('info').timestamp().style('italic').color('green').log("Connected to Socket")

The positioning of the elments doesnt matter with one execption, the log function have to called at least position.

Options

colors styles types
black bold success
red dim error
green italic warning
yellow underscore info
blue reverse debug
magenta hidden
cyan strikethrough
white backoneline

INFO: You can use every color as brighter version by adding a bright before and capitalize the first letter of the color


Package Sidebar

Install

npm i nodejs-color-logger

Weekly Downloads

15

Version

3.0.1

License

ISC

Unpacked Size

7.47 kB

Total Files

3

Last publish

Collaborators

  • d0dge-dev