Logging to amqp and to your own application tracer (for example console)

npm install amqp-logger
2 downloads in the last day
10 downloads in the last week
21 downloads in the last month


The wrap stadart tracer in your application, and publising your logs via amqp protocol, for example to kibana

var logger = require('./utils/logger').init(console, {{
    'name': 'My application',
    'enviroment': 'Dev',
    'protocol': 'amqp',
    'level': 'trace',
    'connection': 'amqp://localhost/rabbitmq',
    'exchange': 'exchange-name',
    'routingKey': 'yourRoutingKey',
    'durable': true,
    "delay": 30000

logger.trace('Hello world', {a: '1'});
//-> Hello world {a: 'a'}
npm loves you