Negligible Psychological Misery

    wraplog

    0.1.5 • Public • Published

    Logger library - npmjs' wraplog

    • Last tests against master on CircleCI: CircleCI

    • Install with:

    sudo npm install -g node-gyp
    npm install wraplog
    

    Note node-gyp would be required installing unix-dgram dependency.

    • Configure using:
    # divert everything to console:
    export DEBUG=whateverstringwoulddo
    
    # to local syslog
    export SYSLOG_FACILITY=local6
    export SYSLOG_PROTO=unix
    export SYSLOG_UNIX_SOCKET=/dev/log
    
    # to remote syslog
    export SYSLOG_FACILITY=local6
    export SYSLOG_PROTO=udp
    export SYSLOG_PROXY=rsyslog.example.com
    export SYSLOG_PORT=514
    
    • Use it in place of console.*:
    const logger = require('wraplog')('appname');
    logger.info('foo');
    logger.error('bar');
    

    Keywords

    none

    Install

    npm i wraplog

    DownloadsWeekly Downloads

    143

    Version

    0.1.5

    License

    BSD-3-Clause

    Unpacked Size

    7.74 kB

    Total Files

    7

    Last publish

    Collaborators

    • syn