LogOptions
struct LogOptions : OptionSet
Undocumented
-
Declaration
Swift
public let rawValue: Int
-
Declaration
Swift
public init(rawValue: Int)
-
The request’s method will be logged.
Declaration
Swift
public static let requestMethod: NetworkLoggerPlugin.Configuration.LogOptions
-
The request’s body will be logged.
Declaration
Swift
public static let requestBody: NetworkLoggerPlugin.Configuration.LogOptions
-
The request’s headers will be logged.
Declaration
Swift
public static let requestHeaders: NetworkLoggerPlugin.Configuration.LogOptions
-
The request will be logged in the cURL format.
If this option is used, the following components will be logged regardless of their respective options being set:
- request’s method
- request’s headers
- request’s body.
Declaration
Swift
public static let formatRequestAscURL: NetworkLoggerPlugin.Configuration.LogOptions
-
The body of a response that is a success will be logged.
Declaration
Swift
public static let successResponseBody: NetworkLoggerPlugin.Configuration.LogOptions
-
The body of a response that is an error will be logged.
Declaration
Swift
public static let errorResponseBody: NetworkLoggerPlugin.Configuration.LogOptions
-
Only basic components will be logged.
Declaration
Swift
public static let `default`: NetworkLoggerPlugin.Configuration.LogOptions
-
All components will be logged.
Declaration
Swift
public static let verbose: NetworkLoggerPlugin.Configuration.LogOptions