0.0.7 • Published 8 years ago

monitorer v0.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

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