nodejs amon client
npm install amon-client
First, require amon-client
:
var Amon = require('amon-client');
###use zeromq
var amon = new Amon({host:'127.0.0.1', port:5464, protocal: 'zeromq'});
amon.log('this is log transport by zeromq', 'debug');
###use http
var amon = new Amon({host:'127.0.0.1', port:2464, protocal: 'http', secret_key:'key in amon.conf'});
amon.log('this is log transport by http', 'debug');