Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
switch (options.verbose) {
case 1:
log.transports.console.level = 'debug';
break ;
case 2:
log.transports.console.level = 'debug';
process.argv.push('-printtoconsole');
break ;
case 3:
log.transports.console.level = 'silly';
process.argv.push('-debug');
process.argv.push('-printtoconsole');
break ;
}
log.daemon = log.info;
log.debug(`console log level: ${log.transports.console.level}`);
log.debug(`file log level: ${log.transports.file.level}`);
return log;
}