Browse Source

无jira任务,修复打包

fbp/feature
Destiny.Lin 3 months ago
parent
commit
429b1af7ad
  1. 30
      designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java

30
designer-realize/src/main/java/com/fanruan/boot/env/DesignEnvComponent.java vendored

@ -239,27 +239,27 @@ public class DesignEnvComponent {
* ----------- logger -------- * ----------- logger --------
*/ */
private void startLogger() { private void startLogger() {
String realPath = Carina.properties(LoggerProperties.class).getXml(); URI uri = Log4jUtils.buildUserConfigURI(StringUtils.EMPTY);
URI uri = Log4jUtils.buildUserConfigURI(realPath);
FRLogger.getLogger().config(uri); FRLogger.getLogger().config(uri);
// 日志配置更新的监听在FRLogger里面,fbp去掉了但是设计器本地还是需要这个监听的,初始化的时候监听一下 // 日志配置更新的监听在FRLogger里面,fbp去掉了但是设计器本地还是需要这个监听的,初始化的时候监听一下
listenConfig(); listenConfig();
} }
private void listenConfig() { private void listenConfig() {
ValidateConfigManger.getInstance().registerListener(new ConfigChangeListener() { // 等fbp改完,现在先配合打包注释掉
// ValidateConfigManger.getInstance().registerListener(new ConfigChangeListener() {
@Override //
public boolean accept(Class<? extends Configuration> configClass) { // @Override
return configClass.equals(Log4jConfig.class); // public boolean accept(Class<? extends Configuration> configClass) {
} // return configClass.equals(Log4jConfig.class);
// }
@Override //
public void change() { // @Override
// The root logger is the topmost logger with a name of "" (the empty string). // public void change() {
Configurator.setAllLevels("", Log4jConfig.getInstance().getRootLevel()); // // The root logger is the topmost logger with a name of "" (the empty string).
} // Configurator.setAllLevels("", Log4jConfig.getInstance().getRootLevel());
}); // }
// });
} }

Loading…
Cancel
Save