simple-winston-logger-abstraction
DESCRIPTION:
Wraps around winston logger instantion and exposes info, error, debug methods
USAGE:
import logger from 'simple-winston-logger-abstraction'
const logger = require('simple-winston-logger-abstraction');
logger.info(`calling method with this payload ${JSON.stringify(payload)}`, "request_id")
logger.error(`error: ${err.message}`)
logger.debug(`error: ${err.message} ${err.stack}`)
logger.debug(`calling method with this payload ${JSON.stringify(payload)} and this ID ${id}`)
Set an environment variable LOG_LEVEL:"debug||info||error" for required logging level.