@artsys/loggerjs
v1.1.0
Published
Logger class for easy and aesthetically pleasing console logging
Downloads
9
Maintainers
Readme
@artsys/loggerjs
Add an easy and aesthetically pleasing console logging for your project.
Installation
You can use the following command to install this package.
$ npm install @artsys/loggerjs
Usage
const logger = require("@artsys/loggerjs");
logger.log("Here is your log", "log");
logger.log("Here is your log");
// => [2022-02-09 10:08:36]: LOG Here is your log
// OR
logger.log("Here is your log", "error");
logger.error("Here is your log")
// => [2022-02-09 10:09:26]: ERROR Here is your log
| available types | | :-----------------: | | log | | warn | | error | | debug | | cmd | | ready |