# log4logstash

> send log to logstash

Latest version **1.0.1** (published 2016-08-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install log4logstash
pnpm add log4logstash
yarn add log4logstash
bun add log4logstash
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-08-18 |
| First published | 2016-08-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lichao |
| Maintainers | acceptedlc |
| Keywords | logstash, zhike |

## Links

- npm: https://www.npmjs.com/package/log4logstash
- Repository: https://github.com/Acceptedlc/logger4Logstash
- Homepage: https://github.com/Acceptedlc/logger4Logstash#readme
- Issues: https://github.com/Acceptedlc/logger4Logstash/issues
- npm.io page: https://npm.io/package/log4logstash

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-08-18
- 1.0.0 — 2016-08-18

## README

#Log4Logstash

用于将日志推送到redis中，从而可以让logstash接收。
  
使用方法：

```js

var redis = require('redis').createClient(6379, '127.0.0.1');

// redis，appId是必选参数。
// channel是默认参数,默认值为'logstash-'+appId;
var logger = require('../index')(redis, appId, channel);

//level代表错误级别，默认为log。
logger({hello: 'world'});
//修改错误级别为error
logger({hello: 'world'，level:'error'});

```

---
_Source: https://npm.io/package/log4logstash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
