0.1.1 • Published 10 years ago

eplus v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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