CTC Logger package
Installation
npm install ctc-logger
Example
at examples/generic.js
Usage
Create a config and define settings of the logger, as done below
let loggerConfig = {
logLevel: 'debug',
transports: {
console: {},
file: {
filename: 'ctcExampleLogFile.log'
}
}
};
Initialize the logger with config
logger.initializeLogger(loggerConfig);
Use defined functions to select the log level:
logError
logWarn
logInfo
logVerbose
logDebug