Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

LEDBrain/more-colorful-logger

Repository files navigation

More Colorful Logger

An easy to use, more colorful logger.

Usage

Installation

npm i more-colorful-logger --save

Using in code

usage

with Timestamp without Timestamp
true or by default (no input) false
1 0

Example:

const log = require("more-colorful-logger");

log.error("This is an Error-Log"); // with timestamp
log.warn("This is a Warn-Log", false); // without timestamp
log.info("This is an Info-Log", 0); // without timestamp
log.completed("This is a Completed-Log", 1) // with Timestamp

or use this:

const { error, warn, info } = require("more-colorful-logger");

error("This is an Error-Log");
warn("This is a Warn-Log");
info("This is an Info-Log");

Releases

No releases published

Packages

No packages published