程序包 cool.scx.logging
接口 ScxLoggerMessageFormatter
public interface ScxLoggerMessageFormatter
消息格式化器
- 版本:
- 2.0.6
- 作者:
- scx567888
-
字段概要
字段 -
方法概要
修饰符和类型方法说明format(LocalDateTime localDateTime, ScxLoggingLevel level, String name, String message, Throwable throwable, String stackTraceInfo) 将参数格式化位 字符串以便展示和打印
-
字段详细资料
-
DEFAULT_SCX_LOGGER_MESSAGE_FORMATTER
默认的 消息格式化器
-
-
方法详细资料
-
format
String format(LocalDateTime localDateTime, ScxLoggingLevel level, String name, String message, Throwable throwable, String stackTraceInfo) 将参数格式化位 字符串以便展示和打印- 参数:
localDateTime- 日志触发的时间level- 日志级别name- 日志名称message- 消息throwable- 错误信息 (可能为 null)stackTraceInfo- 堆栈跟踪信息 (可能为 null)- 返回:
- 字符串 注意需要自行设置结尾的换行
-