clew-logger

1.0.8 • Public • Published

` const clew = require('clew-logger'); clew.create({ prod: process.env.NODE_ENV === 'production', prodHost: 'http://my-loki-endpoint.domain.com:port', appTag: 'myAppTag }); const log = clew.log; // all other imports for logging can use // const {log} = require('clew-logger');

app.use(clew.context.attachContext('namespaceName'));

//log is a standard winston logger log.info({ message: 'This is a test' }) `

/clew-logger/

    Package Sidebar

    Install

    npm i clew-logger

    Weekly Downloads

    0

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    4.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • epeterson