tae5609-log

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i tae5609-log

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

2.59 kB

Total Files

3

Last publish

Collaborators

  • tae5609