2.0.0 • Published 8 years ago

service-logging-streams v2.0.0

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

Some default streams for use with service-logging

Usage:

    var logging = require('service-logging'),
		streams = require('service-logging-streams');

	logging({

		/* ... */

		streams: streams({
			fileName: 'my_service.log' // defaults to 'test.log',
			logstash: { // if not specified no logstash stream will be created
				host: 'blah.com',
				port: 1234
			},
			fluentd: { // if not specified no fluentd stream will be created
				tag: 'development',
				type: 'forward',
				host: 'localhost',
				port: 24224
			}
		}).concat(/* you could add other streams here */)

		/* ... */

	});

Creates a local stream and (optionally) a logstash and/or fluentd stream.

Local stream properties:

EnvironentLevelPretty
TestDebugYes
DevelopmentErrorYes
ProductionInfoNo