Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getLogLevelName(level) {
switch(level) {
case LogLevel.INFO: return 'INFO';
case LogLevel.ERROR: return 'ERROR';
case LogLevel.WARNING: return 'WARNING';
case LogLevel.DEBUG: return 'DEBUG';
default: return 'NOTSET';
}
}