Giter Site home page Giter Site logo

Comments (7)

martijnwalraven avatar martijnwalraven commented on July 23, 2024 2

@explicitcall: No updates yet, but we're starting to discuss a more flexible network stack that would make it easy to add logging as well. If you're interested, please join #ios-core on the Apollo Slack.

from apollo-ios.

michaelnisi avatar michaelnisi commented on July 23, 2024 1

Try CFNetwork Diagnostic Logging for development. The CFNETWORK_DIAGNOSTICS environment variable lets you configure verbosity (0, 1, 2, or 3).

from apollo-ios.

MaxDesiatov avatar MaxDesiatov commented on July 23, 2024

any updates on this?

thanks.

from apollo-ios.

vjpr avatar vjpr commented on July 23, 2024

Bump

from apollo-ios.

xzenon avatar xzenon commented on July 23, 2024

Bump

from apollo-ios.

designatednerd avatar designatednerd commented on July 23, 2024

CFNetwork Diagnostic logging as mentioned above, Charles Proxy, or MITM proxy are great workarounds until we get to this.

But yes adding this at the lib level would be real helpful.

from apollo-ios.

designatednerd avatar designatednerd commented on July 23, 2024

With the changes in 0.11.0, you should now be able to hook in to both the request as it's about to go out so you can log it and/or change it, as well as the raw response data from the URLSession. Please see the new HTTPNetworkTransportDelegate and its various sub-protocols to see where you can hook into these callbacks.

I'm gonna close this out since I think this should give anyone who wants to log these requests the information they need, and also allow them to use their logging tool of choice rather than something bolted on to Apollo. Please feel free to open new issues if you feel like there are use cases I've missed out on here!

from apollo-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.