toerr

0.0.8 • Public • Published

ToErr

Application Message Logging

Usage

    var ToErr = require("toerr");
    var testFacility = new ToErr("TEST");

    // You can set the level of debugging, default is 0 which shows only fatal errors
    // debug level 5 will show all errors

    testFacility.debugLevel=5;

    // Pre add your error messaging
    testFacility.addMessage( "MessageName", "F", "Example %s %s");

    testFacility.log( "MessageName", "Fatal", "Error" );

    //output
    //[timestamp] TEST-F-MESSAGENAME, Example Fatal Error

Readme

Keywords

Package Sidebar

Install

npm i toerr

Weekly Downloads

8

Version

0.0.8

License

ISC

Last publish

Collaborators

  • tonygurnick