@etrainu/express-logger-middleware

    2.1.0 • Public • Published

    #etrainu-logger-middleware

    To be used with an express router.

    // Sample use
    import * as config from 'config';
    import logMiddleware from './logger';
    
    const bunyan = {
      name: 'appName', // config.get('param')
      streams: [{
        level: 'logLevel',
        stream: process.stdout,
      }],
    };
    
    /** 
      router.use(
        logMiddleware({ config: 'test', logger: bunyan, });
      );
    */
    
    

    Keywords

    none

    Install

    npm i @etrainu/express-logger-middleware

    DownloadsWeekly Downloads

    20

    Version

    2.1.0

    License

    ISC

    Unpacked Size

    4.83 kB

    Total Files

    3

    Last publish

    Collaborators

    • etrainudev
    • cam861
    • mooreorless