toLevel method

Level toLevel()

Implementation

Level toLevel() {
  switch (this) {
    case LogLevel.verbose:
      return Level.trace;
    case LogLevel.debug:
      return Level.debug;
    case LogLevel.info:
      return Level.info;
    case LogLevel.warning:
      return Level.warning;
    case LogLevel.error:
      return Level.error;
    case LogLevel.wtf:
      return Level.fatal;
    default:
      return Level.off;
  }
}