monitorer

0.0.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i monitorer

Weekly Downloads

0

Version

0.0.7

License

MIT

Last publish

Collaborators

  • elmurci