Lightweight, easy-to-use and customizable console logger
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
log.js
package.json
test.js

README.md

Umi-Log

Umi-Log

Lightweight, easy-to-use and customizable console logger.

Features

  • Timestamp

  • Colours

  • Lightweight

  • Customizable

  • (NEW) Hooks

Installation

npm install umi-log

Basic Usage

const log = require("umi-log");

log.info("Test");
log.warn("Test");
log.error("Test");
log.debug("Test");
log.custom("TEST", "Test");

Hooks Usage

As of version 4.0, you can now add hooks that run when the logger runs.

const log = require("umi-log");

log.addHook("info", m => console.log(`reusing the message: ${m}`)

License

MIT

Credits

Yamboy1 - Hooks system

Note

I don't own the icon used, and this module is not affiliated with the Love Live! project.