| | |
| | | } |
| | | |
| | | public static void info(String format, Object... arguments) { |
| | | if (format.contains("[RCS Debug]")) { |
| | | if (format.contains("[WCS Debug]")) { |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | if(configService != null) { |
| | | boolean show = true; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog")); |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog")); |
| | | if(config != null) { |
| | | show = config.getValue().equals("true"); |
| | | } |
| | |
| | | } |
| | | |
| | | public static void warn(String format, Object... arguments) { |
| | | if (format.contains("[RCS Debug]")) { |
| | | if (format.contains("[WCS Debug]")) { |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | if(configService != null) { |
| | | boolean show = true; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog")); |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog")); |
| | | if(config != null) { |
| | | show = config.getValue().equals("true"); |
| | | } |
| | |
| | | } |
| | | |
| | | public static void error(String format, Object... arguments) { |
| | | if (format.contains("[RCS Debug]")) { |
| | | if (format.contains("[WCS Debug]")) { |
| | | ConfigService configService = SpringUtils.getBean(ConfigService.class); |
| | | if(configService != null) { |
| | | boolean show = true; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "rcsDebugShowLog")); |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code", "wcsDebugShowLog")); |
| | | if(config != null) { |
| | | show = config.getValue().equals("true"); |
| | | } |