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 });

Readme

Keywords

Package Sidebar

Install

npm i eplus

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • brandoncarl