Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log4js-node-amqp

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log4js-node-amqp

log4js-node-amqp ================ An AMQP appender for log4js-node

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by1700%
Maintainers
1
Weekly downloads
 
Created
Source

log4js-node-amqp

An AMQP appender for log4js-node

Build Status

Configuration

This is a log4js appender which uses the awesome node-amqp package at: https://github.com/postwait/node-amqp

Usage:

var log4js = require('log4js');
var amqpAppender = require('log4js-node-amqp');

// configure in code
log4js.addAppender(
	amqpAppender.appender({
		// more config options available
		connection: {
			url: "amqp://guest:guest@vm:5672"
		}
	}),
	'amqp-example'
);

var logger = log4js.getLogger('amqp-example');
logThings();

log4js.clearAppenders();

// or configure via configure()
log4js.configure({
	appenders: [
		{
			type: 'console'
		},
		{
			type: 'log4js-node-amqp',
			connection: {
				url: "amqp://guest:guest@vm:5672"
			},
			category: 'amqp-example'
		}
	]
});
var logger = log4js.getLogger('amqp-example');
logThings();

process.exit();

function logThings() {
	// strings work
	logger.info('a string of log data.');
	// so do objects
	logger.info({name: 'a string', type: 'a silly example'});
}

License

The MIT License Copyright (c) 2013 Max Nachlinger

FAQs

Package last updated on 19 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc