Neural Proton Mapper

    @elastic.io/component-logger

    0.0.1 • Public • Published

    component-logger

    Logger for elastic.io platform component development based on Bunyan

    Example

    const log = require('component-logger')();
    
    log.info('starting up');
    log.debug('things are heating up', { temperature: 80, status: { started: 'yes', overheated: 'no' } });
    log.warn('getting a bit hot', { temperature: 120 });
    log.error('OOOOHHH it burns!', new Error('temperature: 200'));
    log.fatal('I died! Do you know what that means???');

    Environment variables

    Name Description Values
    LOG_OUTPUT_MODE Log record view format short long simple json bunyan
    LOG_LEVEL Log Level fatal error warn info debug trace

    Keywords

    Install

    npm i @elastic.io/component-logger

    DownloadsWeekly Downloads

    97

    Version

    0.0.1

    License

    Apache-2.0

    Unpacked Size

    3.27 kB

    Total Files

    4

    Last publish

    Collaborators

    • kevin_mobbs
    • stas1313
    • legendmiha
    • annekov
    • garry_ua
    • olga.virolainen
    • shkarupanick
    • jhorbulyk
    • irisk
    • vi6x
    • juhrmacher
    • illya_98