eplus

0.1.1 • Public • Published

Installation

$ npm install eplus

Quick Start


var E = require("eplus")

// Set up some errors
E.registerError("Authentication Error");
E.registerError("Database Error");
E.registerError("Mail Error");


// Add some transports: they must have a "log" function
E.addTransport({
  name : "console",
  log  : function(err, data) {
    console.log(err.stack);
  }
});


// And how to use it!

if (/* errors during authentication /*)
  new E.Authentication("Bad authentication", { mod : "Auth", fxn : "login", user : email });

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i eplus

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • brandoncarl