1.0.4 • Published 2 years ago

@viewsonic-mvb/pino-fluentd v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

pino-fluentd

ts-airbnb-style test codecov CodeQL npm npm version

Load pino logs into Fluentd.

Install

npm install @viewsonic-mvb/pino-fluentd

Usage as module

const pino = require('pino')
const pinoFluentd = require('@viewsonic-mvb/pino-fluentd')

const streamToFluentd = pinoFluentd({
  index: 'an-index-%{DATE}',
  host: 'localhost',
  port: 24224,
  client: {
    milliseconds: true,
    eventRetry: {},
    flushInterval: 1000,
  },
})

const logger = pino({ level: 'info' }, streamToFluentd)

logger.info('hello world')
// ...

License

Licensed under MIT.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago