mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
feat: add CMDConf
set -debug=all to set rootLogger as DEBUG
This commit is contained in:
parent
6029666603
commit
789a896cca
@ -139,6 +139,10 @@ public class CMHttpServer {
|
|||||||
try {
|
try {
|
||||||
String[] classes = cmdConf.debug.split(",");
|
String[] classes = cmdConf.debug.split(",");
|
||||||
for (String clz : classes) {
|
for (String clz : classes) {
|
||||||
|
if ("all".equalsIgnoreCase(clz)) {
|
||||||
|
Configurator.setRootLevel(Level.DEBUG);
|
||||||
|
break;
|
||||||
|
}
|
||||||
Configurator.setLevel(clz, Level.DEBUG);
|
Configurator.setLevel(clz, Level.DEBUG);
|
||||||
LOGGER.warn("set debug: " + clz);
|
LOGGER.warn("set debug: " + clz);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user