@seojaeyoung/color-loggers

1.0.2 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i @seojaeyoung/color-loggers

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • seojaeyoung