public class FileLogManagerServiceImpl extends Object implements LogManagerApi
| 构造器和说明 |
|---|
FileLogManagerServiceImpl(String fileSavePath)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
del(LogManagerRequest logManagerParam) |
LogRecordDTO |
detail(LogManagerRequest logManagerRequest) |
List<LogRecordDTO> |
findList(LogManagerRequest logManagerParam) |
cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult<LogRecordDTO> |
findPage(LogManagerRequest logManagerParam) |
static byte[] |
getBytes(char[] chars)
解决readLine读取中文乱码问题
|
static List<String> |
getIntervalDate(String start,
String end)
计算两个日期之间所有的日期
|
int |
getTotalLines(File file)
获取总行数
|
public FileLogManagerServiceImpl(String fileSavePath)
fileSavePath - 文件保存路径public List<LogRecordDTO> findList(LogManagerRequest logManagerParam)
findList 在接口中 LogManagerApipublic cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult<LogRecordDTO> findPage(LogManagerRequest logManagerParam)
findPage 在接口中 LogManagerApipublic void del(LogManagerRequest logManagerParam)
del 在接口中 LogManagerApipublic LogRecordDTO detail(LogManagerRequest logManagerRequest)
detail 在接口中 LogManagerApipublic static byte[] getBytes(char[] chars)
chars - 乱码的字符串转数组public static List<String> getIntervalDate(String start, String end)
start - 开始日期 间隔end - 结束日期public int getTotalLines(File file) throws IOException
file - 日志文件路径IOExceptionCopyright © 2022. All rights reserved.