use of org.cubeengine.logscribe.LogLevel in project core by CubeEngine.
the class Log4jProxyTarget method setProxyLevel.
@Override
public void setProxyLevel(LogLevel level) {
Level l4jLevel = levelMap.get(level);
if (l4jLevel == null) {
l4jLevel = Level.INFO;
}
this.handle.setLevel(l4jLevel);
}
use of org.cubeengine.logscribe.LogLevel in project core by CubeEngine.
the class LogLevelParser method parse.
@Override
public LogLevel parse(Class type, CommandInvocation invocation) throws ParserException {
String arg = invocation.consume(1);
LogLevel logLevel = LogLevel.toLevel(arg);
if (logLevel == null) {
throw new TranslatedParserException(i18n.translate(invocation.getContext(Locale.class), MessageType.NEGATIVE, "The given log level is unknown."));
}
return logLevel;
}
Aggregations