FileLogDestination

public class FileLogDestination : LogDestination

Defines logging into a file

  • Intializer.

    Declaration

    Swift

    public init(fileURL: URL)

    Parameters

    fileURL

    The file path to write the logs to.

  • Logs a message into a file

    Declaration

    Swift

    public func write(_ message: StaticString, level: LogLevel, category: LogCategory, _ args: [CVarArg])

    Parameters

    message

    Message to be written into the console log

    level

    Log level defining type of log

    category

    Log category defining type of data logged

    args

    Log arguments