FileLogDestination
public class FileLogDestination : LogDestination
Defines logging into a file
-
Intializer.
Declaration
Swift
public init(fileURL: URL)Parameters
fileURLURL of a file logs are going to be written into.
-
Logs a message into a file
Declaration
Swift
public func write(_ message: StaticString, level: LogLevel, category: LogCategory, _ args: [CVarArg])Parameters
messageMessage to be written into the console log
levelLog level defining type of log
categoryLog category defining type of data logged
argsLog arguments
FileLogDestination Class Reference