@catalyst-sourcefuse/affinity-logger

    2.1.0-alpha.1 • Public • Published

    @catalyst-sourcefuse/affinity-logger

    Affinity logger based on pino. Streams logs to elasticsearch.

    Usage

    const affinityLogger = require('@catalyst-sourcefuse/affinity-logger');
    
    const logger = Logger({
      pino: { level: 'info' },
      elsatic: {
        index,
        consistency: 'one',
        node: process.env.ELASTICSEARCH_ENDPOINT,
        'es-version': 6,
        ecs: true,
      },
    });

    Keywords

    none

    Install

    npm i @catalyst-sourcefuse/affinity-logger

    DownloadsWeekly Downloads

    4

    Version

    2.1.0-alpha.1

    License

    ISC

    Unpacked Size

    12.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • npm-sourcefuse
    • catalyst.affinity