Comparing version 0.0.2 to 0.0.3
@@ -76,2 +76,3 @@ require('colors'); | ||
helper.e = helper.error; | ||
helper.err = helper.error; | ||
@@ -78,0 +79,0 @@ function log() { |
{ | ||
"name": "carpet", | ||
"description": "log log log", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": "Mircea Nistor <mirceanis@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -24,2 +24,13 @@ carpet | ||
Also accepts multiple arguments | ||
var log = require('carpet'); | ||
log("loook ma' %s formatted output !!!%doneoneeleven", "this is", 1); | ||
## TODO | ||
Log levels only change color but it might be necessary to limit log output so.. | ||
//TODO: log.setLevel("debug" /../ "error"); | ||
@@ -48,2 +59,11 @@ //TODO: load log level from environment variable | ||
0.0.3 | ||
- some cleanup | ||
0.0.2 | ||
- shorter member function names | ||
- can also be called directly, equivalent to log.info() | ||
0.0.1: | ||
@@ -53,5 +73,2 @@ | ||
0.0.2 | ||
- shorter member function names | ||
- can also be called directly, equivalent to log.info() |
var log = require('./lib/carpet'); | ||
require('colors'); | ||
@@ -11,13 +12,11 @@ console.log(log); | ||
log.log("loook ma' %s formatted output !!!%doneoneeleven", "this is", 1); | ||
log.log("loook ma' %s formatted output !!!%doneoneeleven", "this is".red, 1); | ||
log.log("next one is empty"); | ||
log.log(); | ||
log.log("objects: ", {a : 2, b : ['a', 's', undefined, 'f'], c : { b : { a : 2}}}); | ||
log.e({a : 2, b : ['a', 's', undefined, 'f'], c : { b : { a : 2}}}, "objects first "); | ||
log("calling it short"); | ||
log.w("calling a warning"); | ||
log.w("calling a short warning"); | ||
Sorry, the diff of this file is not supported yet
88
72
7426
6