void (@NotNull Level level) { switch (level.toInt()) { case Priority.OFF_INT: myLogger.setLevel(java.util.logging.Level.OFF); break; case Priority.FATAL_INT: case Priority.ERROR_INT: myLogger.setLevel(java.util.logging.Level.SEVERE); break; case Priority.WARN_INT: myLogger.setLevel(java.util.logging.Level.WARNING); break; case Priority.INFO_INT: myLogger.setLevel(java.util.logging.Level.INFO); break; case Priority.DEBUG_INT: myLogger.setLevel(java.util.logging.Level.FINE); break; case Level.TRACE_INT: myLogger.setLevel(java.util.logging.Level.FINER); break; case Priority.ALL_INT: myLogger.setLevel(java.util.logging.Level.ALL); break; } }