LoggerPluginFile

public class LoggerPluginFile : NSObject, LoggerPlugin, @unchecked Sendable

文件日志插件

  • Undocumented

    Declaration

    Swift

    @objc(sharedInstance)
    public static let shared: LoggerPluginFile
  • 自定义日志格式化处理器

    Declaration

    Swift

    public var logFormatter: LogFormatter?
  • 自定义日志保留天数,默认7天

    Declaration

    Swift

    public var logKeepDays: Int
  • 是否按天合并日志文件,默认true

    Declaration

    Swift

    public var shouldMergeFiles: Bool
  • 日志根目录路径

    Declaration

    Swift

    public private(set) var logPath: String { get }
  • 当前日志文件路径

    Declaration

    Swift

    public private(set) var logFile: String { get }
  • Undocumented

    Declaration

    Swift

    override public convenience init()
  • 指定路径

    Declaration

    Swift

    public init(path: String?)
  • 记录日志协议方法

    Declaration

    Swift

    public func log(_ logMessage: LogMessage)