LogHandlerFile
public class LogHandlerFile : LogHandler
Handler logging to a file.
-
Create log handler.
Declaration
Swift
public init() -
Create log handler.
Declaration
Swift
public init(logLevel: Logger.Level) -
Declaration
Swift
public func publish(record: Logger.LogRecord) -
Required log level for records to be published to this handler.
Declaration
Swift
public var logLevel: Logger.Level -
Date time formatter.
Declaration
Swift
public var dateFormatter: DateFormatter -
Declaration
Swift
public var newFileHeader: String? { get set } -
Declaration
Swift
public static func getLogFiles() -> [Data] -
Declaration
Swift
public func getLogFile(day: Date) -> Data? -
Declaration
Swift
public static func removeAllLogs() -
Declaration
Swift
public func removeLog(day: Date)