This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

h-log

1.0.0 • Public • Published

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 = new log();
 
log.done().add(
    function (entry) {
        // for pretty browser objects in console
        console[entry.getType()](entry.toObject());
 
        // for node
        console[entry.getType()](entry.toString());
    }
);
 
log
    .error("This object is bad!", badObject)
    .attr("my", "attribute")
    .done();

Documentation

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i h-log

Weekly Downloads

2

Version

1.0.0

License

none

Last publish

Collaborators

  • kherge