1.0.2 • Published 2 years ago

@seojaeyoung/color-loggers v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Installation

// with npm
npm i @seojaeyoung/color-loggers

Explain

// options
info => default color
infof => green color
debug => cyan color
warn => yellow color
crash => red color
sql => magenta
bold => bold log
underscore=> underscore log
whitespace => reverse console.log color
customLog => set log level and color

Sample Code

const { logger } = require("@seojaeyoung/color-loggers");

logger.infof("hello world!"); // <== green color console.log in terminal
logger.customLog("hello world!", "test-log", "yellow"); // <== yellow color console.log in terminal and parsing log ex) test-log: hello world!