LogWriter

public protocol LogWriter

A protocol that can write log messages

  • Writes a log message

    Declaration

    Swift

    func write(level: LogLevel, message: () -> String, parameters: LogParameters)

    Parameters

    level

    The level that this message would be logged at

    message

    The message to write to the log

    parameters

    Associated information about the log message (file, line, etc)

  • Controls the log level for this specific LogWriter instance

    Declaration

    Swift

    var level: LogLevel { get set }