1.0.0 • Published 11 years ago

h-log v1.0.0

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

Log

Build Status

Log is a simple log manager designed to be used either with a browser (or Node.js) console, or as a drop in alternative. The basic methods (debug, error, info, log, warn) can all be used the same way, and can be either serialized and sent somewhere, or dumped to the browser console.

// browser
var log = new Herrera.Log();

// node
var log = require("h-log").log;

log.onDone(
    function (entry) {
        console[entry.getType()](entry.toObject());
    }
);

log
    .error("This object is bad!", badObject)
    .attr("my", "attribute")
    .done();

Documentation

1.0.0

11 years ago

0.0.0

11 years ago