pwc-us-agc-logger
v1.0.3
Published
logger handler for all rest api services for ACG application
Downloads
6
Readme
"# logger" Usage:
In logger.js file in each repo:
import dotenv from 'dotenv'; import Logger from 'pwc-us-agc-logger';
dotenv.config();
const log = new Logger();
log.setLogLevel(process.env.LOG_LEVEL);
const logger = log.getLogger();
export default logger;
In .env
LOG_LEVEL=<'Log levels like - ERROR, INFO, DEBUG'>