LoggerProtocol

public protocol LoggerProtocol

Protocol describing the requirements for a Logger

  • Declaration

    Swift

    func log(message: String, event: LogEvent)
  • Method which logs a message

    Declaration

    Swift

    func log(message: String, event: LogEvent, fileName: String, line: Int, column: Int, funcName: String)

    Parameters

    message

    message to be logged

    event

    event type for the message

    fileName

    name of the file in which the log was initiated

    line

    specifies the line in which the log was initiated

    column

    defines the column in which the log was initiated

    funcName

    specifies the name of the function in which the log was initiated