# good-winston-json

> good winston reporter with structured JSON output

Latest version **0.0.3** (published 2016-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install good-winston-json
pnpm add good-winston-json
yarn add good-winston-json
bun add good-winston-json
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-02-26 |
| First published | 2016-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kai Kramer |
| Maintainers | krambox |
| Keywords | winston, logging, good, hapi |

## Links

- npm: https://www.npmjs.com/package/good-winston-json
- Repository: https://github.com/krambox/good-winston-json
- Homepage: https://github.com/krambox/good-winston-json#readme
- Issues: https://github.com/krambox/good-winston-json/issues
- npm.io page: https://npm.io/package/good-winston-json

## Dependencies (3)

- [joi](https://npm.io/package/joi.md) ^8.0.3
- [hoek](https://npm.io/package/hoek.md) ^3.0.4
- [good-squeeze](https://npm.io/package/good-squeeze.md) ^2.1.0

## 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

- 0.0.3 (latest) — 2016-02-26
- 0.0.2 — 2016-02-26
- 0.0.1 — 2016-02-26

## README

# good-bunyan-json

A [Good logger](https://github.com/hapijs/good) for [winston](https://github.com/winstonjs/winston)

Supports custom formatter functions and json logging output.

## Usage

```js
var winston = require('winston');
var GoodWinstonReporter = require('./lib');


var options = {
  opsInterval: 5000,
  reporters: [{
    reporter: GoodWinstonReporter,
    events: {
      log: '*',
      request: '*',
      response: '*',
      error: '*',
      ops: '*'
    },
    config: {
      logger: winston
    }
  }]
};

server.register({
  register: require('good'),
  options: options
}, function (err) {
  if (err) {
    console.error(err);
  } else {
    server.start(function () {
      console.info('Server started at ' + server.info.uri);
    });

    server.log('info', 'Hello');
    server.log('error', 'Error');
  }
});

```

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