Package Exports
- fastify-graylog-reporter
- fastify-graylog-reporter/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fastify-graylog-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fastify plugin for report request data to Graylog (GELF)
Graylog Setup:
This module requires a GELF_UDP input to be configured on your graylog server.
Usage
- Declare the input on Graylog WEB UI (support only UDP GELF)
- Install plugin with
npm i fastify-graylog-reporter - Use.
import { fastifyGrayLogReporter } from 'fastify-graylog-reporter';
/**
* Register plugin
*/
fastify.register(fastifyGrayLogReporter, {
host: 'my host',
/**
* optional value
*/
port: 5555,
/**
* stream name
*/
facility: `API_${process.env.ENVIRONMENT}`,
/**
* keys for exclude report (type ExcludeKeys[])
*/
excludeFields: [],
/**
* For debug
*/
logs: true,
});
In progress
- tcp transport
