@hong-boy/log4js-logstash-redis

2.0.1 • Public • Published

log4js-logstash-redis

The logstash-reids appender for log4js, which using redis list to record log.

Usage

  • Install
npm install @hong-boy/log4js-logstash-redis --save
or
yarn add @hong-boy/log4js-logstash-redis
  • Log4js Configuration
logstash: {
	type: '@hong-boy/log4js-logstash-redis',
	key: 'logstash-key',
	redis: {// ioredis configuration
		host: 'localhost',
		port: 6379,
		lazyConnect: true,
	},
	layout: {
		type: 'pattern',
		pattern: `%d %p %z --- [frontend-web] %c : %m%n`,
	}
}

Readme

Keywords

none

Package Sidebar

Install

npm i @hong-boy/log4js-logstash-redis

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

67.6 kB

Total Files

5

Last publish

Collaborators

  • hong--boy