SwifterlogCallbackProtocol

public protocol SwifterlogCallbackProtocol: AnyObject

The protocol for loginfo callback receivers

  • Called when log information must be processed by the target.

    Note

    DO NOT CALL A LOGGING FUNCTION WITHIN A CALLBACK WITH A TARGET INCLUDING THE CALLBACK ITSELF. This would create an endless loop.

    Declaration

    Swift

    func logInfo(_ time: Date, level: SwifterLog.Level, source: String, message: String)

    Parameters

    time

    The time of the logging event.

    level

    The level of the logging event.

    source

    The source of the logging event.

    message

    The message of the logging event.