1.0.0 • Published 2 years ago

mokilow v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

mokilow

Just another simple logging package with support for timestamps. Best used to generate colored/pretty logs in a syslog environment.

Usage

Using mokilow is straightforward. By default, the time is included within the logging statement.

mokilow.warn("a warning message")
mokilow.error("an error message")
mokilow.info("an info message")
mokilow.debug("a debug message")

mokilow.warn("a warning message with time", true)
mokilow.error("an error message with time", true)
mokilow.info("an info message with time", true)
mokilow.debug("a debug message with time", true)

The code above produces:

Screenshot

Installation

Install the package using the command below

npm i mokilow

Tests

Run the written unit tests for the package with the commands below.

git clone https://github.com/aravindnatch/mokilo.git
npm install
npm test