程序包 cool.scx.logging

接口 ScxLoggerMessageFormatter


public interface ScxLoggerMessageFormatter
消息格式化器
版本:
2.0.6
作者:
scx567888
  • 字段详细资料

    • DEFAULT_SCX_LOGGER_MESSAGE_FORMATTER

      static final ScxLoggerMessageFormatter 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)
      返回:
      字符串 注意需要自行设置结尾的换行