more-colorful-loggerdeprecated

An easy to use, more colorful logger.

Usage no npm install needed!

<script type="module">
  import moreColorfulLogger from 'https://cdn.skypack.dev/more-colorful-logger';
</script>

README

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");