Logging & Metrics
This version of Atom adds the ability to log all network requests to the Console app as well as export all logs to a file.
To take advantage of this new feature, set log property on Atom instance to .on:
let atom: Atom = {
let atom = Atom()
atom.log = .on
return atom
}()Current implementation uses os_log.
If you choose to use the Console app for monitoring outgoing requests, you can use the following categories and subsystems to filter results.
Categories: Network, Authentication.
Subsystems: Your App’s Bundle Identifier.
Changelog
- Add and implement required
OSLogoptions. - Add and implement required additions to
Bool,URLRequest,URLResponse,URLSessionTask,URLSessionTaskMetrics. - Introduce and implement
Interceptortype. - Update implementation of the
ServiceandAuthenticationManagerto use newInterceptorfor logging requests to the Console. - Update the Example app.
- Update documentation.