Giter VIP home page Giter VIP logo

Comments (3)

gregurco avatar gregurco commented on July 16, 2024

Hello @julien-maurel
Please check this PR: #289
Does it solve your problem?

from eightpointsguzzlebundle.

julien-maurel avatar julien-maurel commented on July 16, 2024

Hi,
No, I tried this settings and I have only one log (after response) even if I set logging to REQUEST_AND_RESPONSE.
Waht I try is to have one log before request execution and one log after (with response).
Thanks

from eightpointsguzzlebundle.

gregurco avatar gregurco commented on July 16, 2024

Hello

Sorry for late response. If the problem is still actual then you can find the solution here:

  1. create custom middleware similar with this one: https://github.com/8p/EightPointsGuzzleBundle/blob/master/src/Middleware/LogMiddleware.php
  2. inject in middleware 2 loggers (not one, as in exemple)
  3. Configure first logger to write in first log file and trigger this logger in request middleware section. In the response middleware section trigger the second logger, which should be configured to write to separate file.

Important to know here how to configure different symfony loggers and how guzzle middlewares work.

from eightpointsguzzlebundle.

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.