LogFormatterImpl

public class LogFormatterImpl : LogFormatter, @unchecked Sendable

默认日志格式化处理器实现

  • Undocumented

    Declaration

    Swift

    public static let shared: LogFormatterImpl
  • 自定义日期格式化

    Declaration

    Swift

    public lazy var dateFormatter: DateFormatter { get set }
  • Undocumented

    Declaration

    Swift

    public init()
  • 格式化日志时间

    Declaration

    Swift

    public func formatDate(_ logMessage: LogMessage) -> String
  • 格式化日志消息

    Declaration

    Swift

    public func format(_ logMessage: LogMessage) -> String?