node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

monitorer

monitorer

Simple monitor module for nodejs4+

Installation

$ npm install monitorer --save

Setting up

Direct configuration

"use strict";
 
Monitorer = require('../index'),
monitorer = new Monitorer({url: 'http://127.0.0.1:8480/v1/log/'}); 
 
var result = monitorer.send(
        'sendPayment',
        'PaymentApi',
        'ok',
        {
            "whatever": "works"
        },
        'type': 'fatal'
    )
    .then(function(res) {
        // do something 
    })
    .catch(function(err){
        // do something 
    });