brologger-elasticsearch
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

brologger-elasticsearch

Slack transport for simple logging library

Installation

Npm

npm install brologger-elasticsearch

Yarn

yarn add brologger-elasticsearch

Support

This library is quite fresh, and maybe has bugs. Write me an email to natashkinsash@gmail.com and I will fix the bug in a few working days.

Quick start

    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]});
   

TypesScript

This library have typing in module.

Readme

Keywords

Package Sidebar

Install

npm i brologger-elasticsearch

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

7.98 kB

Total Files

7

Last publish

Collaborators

  • natashkinsasha