Slack transport for simple logging library
Npm
npm install brologger-elasticsearch
Yarn
yarn add brologger-elasticsearch
This library is quite fresh, and maybe has bugs. Write me an email to [email protected] and I will fix the bug in a few working days.
import Loger from 'brolloger';
import ESTransport from 'brologger-elasticsearch';
import * as elasticsearch from 'elasticsearch';
const client = new elasticsearch.Client({
host: "URL",
});
const transport = new ESTransport({ indexPrefix: 'development', client })
const logger = new Loger({transports: [transport]});
This library have typing in module.