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.setLogfor redirecting logs. It will be called when a message is to be logged.Declaration
Swift
public typealias LogImplementation = (NSString) -> Void -
Set and use given
LogImplementationobject.If passed parameter is not
nil, callingSCMEnvironment.startRemotelogsis not possible.Declaration
Swift
public static func setLog(implementation: LogImplementation?)Parameters
implementationLogImplementationobject to use for logging, ornilfor resetting to default behaviour.