feat: add CMDConf

set -debug=all to set rootLogger as DEBUG
This commit is contained in:
Frank.R.Wu 2021-11-22 15:23:50 +08:00
parent 6029666603
commit 789a896cca

View File

@ -139,6 +139,10 @@ public class CMHttpServer {
try {
String[] classes = cmdConf.debug.split(",");
for (String clz : classes) {
if ("all".equalsIgnoreCase(clz)) {
Configurator.setRootLevel(Level.DEBUG);
break;
}
Configurator.setLevel(clz, Level.DEBUG);
LOGGER.warn("set debug: " + clz);
}