There exists a very useful way to debug requests in 100.x, this:
let config = AGSRequestConfiguration.global()
config.debugLogFileURL = URL(fileURLWithPath: "/tmp/arcgis.md")
config.debugLogRequests = true
config.debugLogIncludeRequestHeaders = true
config.debugLogResponses = true
config.debugLogIncludeResponseHeaders = true
config.debugLogResponseTrimThreshold = 500
config.debugLogIgnoreTiledLayerRequests = true
Is there an equivalent version in 200.x? I checked the documentation but haven't found anything similar.
Solved! Go to Solution.
Hi @zdtorok,
Please use ConsoleNetworkLogger in 200.x for request logging. You can use following code at the start of the application.
let logger = ConsoleNetworkLogger(requestOptions: [.method, .body, .headers], responseOptions: [.data, .headers])
logger.startLogging()
Also, you can use the NetworkLogger protocol to build your own custom network logger.
Hope this helps!
Regards,
Nimesh
Hi @zdtorok,
Please use ConsoleNetworkLogger in 200.x for request logging. You can use following code at the start of the application.
let logger = ConsoleNetworkLogger(requestOptions: [.method, .body, .headers], responseOptions: [.data, .headers])
logger.startLogging()
Also, you can use the NetworkLogger protocol to build your own custom network logger.
Hope this helps!
Regards,
Nimesh