LogEvent
public enum LogEvent : CustomDebugStringConvertible
Wrapper class for log events emitted by Netable.
-
A generic message, not tied to request state.
Declaration
Swift
case message(String) -
Request has been successfully initiated.
Declaration
Swift
case requestStarted(urlString: String, method: HTTPMethod, headers: [String : Any], params: [String : Any]?) -
Request has completed, this will be send regardless of the HTTP status code.
Declaration
Swift
case requestCompleted(statusCode: Int, responseData: Data?, finalizedResult: Any?) -
Sent when a request fails for any reason.
Declaration
Swift
case requestFailed(error: NetableError) -
Default overrides, used by the default logging destination.
Declaration
Swift
public var debugDescription: String { get }
LogEvent Enumeration Reference