npm.io
1.1.0 • Published 11 years ago

logarithmic

Licence
—
Version
1.1.0
Deps
1
Vulns
0
Weekly
0

Logarithmic

A simpler log tool

Using it is simple:

var logarithmic = require("logarithmic");

logarithmic.alert("The user", username, "is trying to make an account");
logarithmic.ok("The user", username, "has made an account");
logarithmic.warning("A thread has crashed. Now trying to make another");
logarithmic.error("Count not connect to database. Now closing");

The various functions all have colouring so that:

  • alert is blue
  • ok is green
  • warning is yellow
  • error is red