Log

public final class Log

Class to use for logging messages from middleware.

Call Log.setLog to redirect all traces to your LogImplementation object.

  • An implementation to be used through Log.setLog for redirecting logs. It will be called when a message is to be logged.

    Declaration

    Swift

    public typealias LogImplementation = (NSString) -> Void
  • Set and use given LogImplementation object.

    If passed parameter is not nil, calling SCMEnvironment.startRemotelogs is not possible.

    Declaration

    Swift

    public static func setLog(implementation: LogImplementation?)

    Parameters

    implementation

    LogImplementation object to use for logging, or nil for resetting to default behaviour.