类 FileRecordUtils
java.lang.Object
dev.utils.common.assist.record.FileRecordUtils
detail: 文件记录分析工具类
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static StringgetLogContent(RecordConfig config, RecordInsert recordInsert, Object... logs) 获取日志内容static StringgetLogContent(RecordConfig config, Object... logs) 获取日志内容static StringgetLogContent(RecordInsert recordInsert, Object... logs) 获取日志内容static RecordInsert获取日志记录插入信息static boolean全局是否启用文件日志记录static booleanisSuccessful(String value) 校验记录方法返回字符串是否成功static Stringrecord(RecordConfig config, Object... logs) 记录方法static voidsetCallback(FileRecordUtils.Callback callback) 设置文件记录回调static voidsetRecordingEnabled(boolean recordingEnabled) 设置全局是否启用文件日志记录static voidsetRecordInsert(RecordInsert recordInsert) 设置日志记录插入信息
-
方法详细资料
-
isSuccessful
校验记录方法返回字符串是否成功- 参数:
value- 待校验值- 返回:
trueyes,falseno
-
isRecordingEnabled
public static boolean isRecordingEnabled()全局是否启用文件日志记录- 返回:
trueyes,falseno
-
setRecordingEnabled
public static void setRecordingEnabled(boolean recordingEnabled) 设置全局是否启用文件日志记录- 参数:
recordingEnabled- 是否启用
-
getRecordInsert
获取日志记录插入信息- 返回:
- 日志记录插入信息
-
setRecordInsert
设置日志记录插入信息- 参数:
recordInsert- 日志记录插入信息
-
setCallback
设置文件记录回调- 参数:
callback- 文件记录回调
-
getLogContent
获取日志内容- 参数:
config- 日志记录配置信息logs- 日志内容数组- 返回:
- 日志内容
-
getLogContent
获取日志内容- 参数:
recordInsert- 日志记录插入信息logs- 日志内容数组- 返回:
- 日志内容
-
getLogContent
获取日志内容- 参数:
config- 日志记录配置信息recordInsert- 日志记录插入信息logs- 日志内容数组- 返回:
- 日志内容
-
record
记录方法- 参数:
config- 日志记录配置信息logs- 日志内容数组- 返回:
- 记录结果提示
-