mokilow
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mokilow

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

57.8 kB

Total Files

9

Last publish

Collaborators

  • aravindnatch