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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.8
    1
    • latest

Version History

Package Sidebar

Install

npm i toerr

Weekly Downloads

1

Version

0.0.8

License

ISC

Last publish

Collaborators

  • tonygurnick