mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-29 01:21:52 +00:00
Fix mvn/bin/mvn debug output (#606)
This commit is contained in:
@@ -16,10 +16,27 @@
|
||||
package org.mvndaemon.mvnd.logging.internal;
|
||||
|
||||
import org.apache.maven.cli.logging.Slf4jConfiguration;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class MvndSlf4jConfiguration implements Slf4jConfiguration {
|
||||
@Override
|
||||
public void setRootLoggerLevel(Level level) {
|
||||
ch.qos.logback.classic.Level value;
|
||||
switch (level) {
|
||||
case DEBUG:
|
||||
value = ch.qos.logback.classic.Level.DEBUG;
|
||||
break;
|
||||
|
||||
case INFO:
|
||||
value = ch.qos.logback.classic.Level.INFO;
|
||||
break;
|
||||
|
||||
default:
|
||||
value = ch.qos.logback.classic.Level.ERROR;
|
||||
break;
|
||||
}
|
||||
((ch.qos.logback.classic.Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)).setLevel(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user