toLevel method
Level
toLevel()
Implementation
Level toLevel() {
switch (this) {
case LogLevel.all:
return Level.all;
case LogLevel.debug:
return Level.debug;
case LogLevel.info:
return Level.info;
case LogLevel.error:
return Level.error;
default:
return Level.off;
}
}