| | |
| | | */ |
| | | @Override |
| | | public List<LocalLogVO> getSystemLogList(String logParentPath) { |
| | | List<LocalLogVO> localLogsVO = new ArrayList<>(); |
| | | List<LocalLogVO> localLogsVOS = new ArrayList<>(); |
| | | // 不为空说明是加载当前这个服务路径下的日志文件 |
| | | if(Func.isNotEmpty(logParentPath)){ |
| | | File file = new File(logParentPath); |
| | |
| | | localLog.setServiceId(serviceId); |
| | | localLog.setServiceName(getServiceName(serviceId)); |
| | | localLog.setHasChildren(false); |
| | | localLogsVO.add(localLog); |
| | | localLogsVOS.add(localLog); |
| | | }); |
| | | } |
| | | } |
| | |
| | | localLogVO.setLogType(serviceName+"日志父目录"); |
| | | localLogVO.setLogName(serviceName+"日志父目录"); |
| | | localLogVO.setHasChildren(true); |
| | | localLogsVO.add(localLogVO); |
| | | localLogsVOS.add(localLogVO); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | return localLogsVO; |
| | | // 对日志进行降序排序 |
| | | List<LocalLogVO> resLocalLogVOS = localLogsVOS.stream().sorted(Comparator.comparing(LocalLogVO::getLastModifier).reversed()).collect(Collectors.toList()); |
| | | return resLocalLogVOS; |
| | | } |
| | | |
| | | /** |