LogTransmitter
public protocol LogTransmitter
Defines a basic interface that allows for control of where logs get transmitted to
-
Upload will be invoked when logs are ready to be transmitted to their next location It is required that when the logs have been sent to their next destination the onComplete closure be called with the status of the transfer. True should only be given if the transmit was fully successful. This method can be implemented synchronously or asynchronously (recommended)
Declaration
Swift
func upload(logData: [AnyHashable : Any]?, onComplete: @escaping (_ success: Bool) -> Void)