Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get log of incoming requests #51

Open
stefan-schweiger opened this issue Nov 14, 2023 · 1 comment
Open

Get log of incoming requests #51

stefan-schweiger opened this issue Nov 14, 2023 · 1 comment

Comments

@stefan-schweiger
Copy link

It seems like there currently is not the possibility to see all incoming requests (with body and path) in the requests. It would be great to actually have that in the logs.

@mbirchdk
Copy link

mbirchdk commented Apr 19, 2024

I know it is not exacly what you want, but..
I followed https://stackoverflow.com/questions/34181094/set-logging-level-in-spring-boot-via-environment-variable
And i added the environment variable LOGGING_LEVEL_ORG_SPRINGFRAMEWORK=DEBUG. This will give you the path that has been called, and the HTTP-responsecode. - Not the body though

So i end up with a compose-setup like;

  sms-service:
    image: dotronglong/faker:2.2.0
    environment:
      - LOGGING_LEVEL_ORG_SPRINGFRAMEWORK=DEBUG
    volumes:
      - ./sms-service-setup/:/app/mocks:ro
    ports:
      - 9090:3030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants