Browse Source

Pull request #14708: 无jira任务,修复打包

Merge in DESIGN/design from ~DESTINY.LIN/design:fbp/feature to fbp/feature

* commit '874b67c1151583445ca8f63548b5bb8665c47ea1':
  无jira任务,修复打包
  无jira任务,修复打包
fbp/research
Destiny.Lin-林锦龙 4 months ago
parent
commit
a13241653a
  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 --------
*/
private void startLogger() {
String realPath = Carina.properties(LoggerProperties.class).getXml();
URI uri = Log4jUtils.buildUserConfigURI(realPath);
URI uri = Log4jUtils.buildUserConfigURI(StringUtils.EMPTY);
FRLogger.getLogger().config(uri);
// 日志配置更新的监听在FRLogger里面,fbp去掉了但是设计器本地还是需要这个监听的,初始化的时候监听一下
listenConfig();
}
private void listenConfig() {
ValidateConfigManger.getInstance().registerListener(new ConfigChangeListener() {
@Override
public boolean accept(Class<? extends Configuration> configClass) {
return configClass.equals(Log4jConfig.class);
}
@Override
public void change() {
// The root logger is the topmost logger with a name of "" (the empty string).
Configurator.setAllLevels("", Log4jConfig.getInstance().getRootLevel());
}
});
/// 等fbp改完,现在先配合打包注释掉
// ValidateConfigManger.getInstance().registerListener(new ConfigChangeListener() {
//
// @Override
// public boolean accept(Class<? extends Configuration> configClass) {
// return configClass.equals(Log4jConfig.class);
// }
//
// @Override
// public void change() {
// // The root logger is the topmost logger with a name of "" (the empty string).
// Configurator.setAllLevels("", Log4jConfig.getInstance().getRootLevel());
// }
// });
}

Loading…
Cancel
Save