1.0.2 • Published 4 years ago

tae5609-log v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Tae5609 Log

Lightweight date with time logger for Node.js.

Dependencies: chalk

Installing Module

npm i tae5609-log

Example

const tae5609log = require("tae5609-log");
tae5609log.setNormalColor("#78c7ff");
tae5609log.setErrorColor("#ff7878");
tae5609log.setWarnColor("#fffb78");

console.log(tae5609log.normal('<msg to log>'));
console.log(tae5609log.error('<error / issue>'));
console.log(tae5609log.warn('<warning>'));

Method

setNormalColor(hex_color) : Set normal log color

setErrorColor(hex_color) : Set error log color

setWarnColor(hex_color) : Set warn log color