index.js
function Logger(moduletag) {
  const trimmedModule = trim(moduletag)
  winston.loggers.add(trimmedModule, {
    console: {
      colorize: true,
      label   : trimmedModule
    }
  })
  const logger = winston.loggers.get(trimmedModule)
  const defs = genericLog(logger, trimmedModule)
  defs.warn = genericLog(logger, trimmedModule, 'warn')
  defs.error = genericLog(logger, trimmedModule, 'error')
  defs.debug = genericLog(logger, trimmedModule, 'debug')
  defs.info = genericLog(logger, trimmedModule, 'info')
  return defs
}
function Logger(moduletag) {
  const trimmedModule = trim(moduletag)
  winston.loggers.add(trimmedModule, {
    console: {
      colorize: true,
      label   : trimmedModule
    }
  })
  const logger = winston.loggers.get(trimmedModule)
  const defs = genericLog(logger, trimmedModule)
  defs.warn = genericLog(logger, trimmedModule, 'warn')
  defs.error = genericLog(logger, trimmedModule, 'error')
  defs.debug = genericLog(logger, trimmedModule, 'debug')
  defs.info = genericLog(logger, trimmedModule, 'info')
  return defs
}
function Logger ( moduletag ) { const trimmedModule = trim ( moduletag ) winston . loggers . add ( trimmedModule , { console : { colorize : true , label : trimmedModule } } ) const logger = winston . loggers . get ( trimmedModule ) const defs = genericLog ( logger , trimmedModule ) defs . warn = genericLog ( logger , trimmedModule , 'warn' ) defs . error = genericLog ( logger , trimmedModule , 'error' ) defs . debug = genericLog ( logger , trimmedModule , 'debug' ) defs . info = genericLog ( logger , trimmedModule , 'info' ) return defs }
Logging function based on winston library
@function Logger
@param {string} moduletag Name of apps module
Logging function based on winston library