| | |
| | | } |
| | | |
| | | 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"); |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | log.info(format, arguments); |
| | | offer(NewsLevel.INFO, format, arguments); |
| | | return; |
| | | } |
| | | |
| | | RedisUtil redisUtil = null; |
| | | try { |
| | | redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | |
| | | } |
| | | |
| | | 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"); |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | log.warn(format, arguments); |
| | | offer(NewsLevel.WARN, format, arguments); |
| | | return; |
| | | } |
| | | |
| | | RedisUtil redisUtil = null; |
| | | try { |
| | | redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | |
| | | } |
| | | |
| | | 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"); |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | log.error(format, arguments); |
| | | offer(NewsLevel.ERROR, format, arguments); |
| | | return; |
| | | } |
| | | |
| | | RedisUtil redisUtil = null; |
| | | try { |
| | | redisUtil = SpringUtils.getBean(RedisUtil.class); |