}
public static Log getConfigLogger(Class<?> clazz) {
ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigConstant.CONFIGBEAN_ID);
LogConfigBean log = new LogConfigBean();
log.setLevel("debug");
log.setFile(null);
log.setSize("0");
LogsConfigBean logs = new LogsConfigBean();
logs.getLog().add(log);
if (cb == null)
return new LogImpl(logs, "CONFIG", clazz);
String debug = cb.getDebug();
if ("true".equals(debug) || "1".equals(debug)) {
return new LogImpl(logs, "CONFIG", clazz);
} else {
log.setConsole("0");
return new LogImpl(logs, "CONFIG", clazz);
}
}