Skip to content

Log incoming and outgoing requests #2294

Answered by RobinTail
marcelmatko asked this question in Q&A
Discussion options

You must be logged in to vote

Sure, @marcelmatko . You'd need a middleware to log requests and a custom result handler to log responses.
Both entities have access to the logger argument in their handler.
Please refer to the corresponding documentation for examples:

  1. Middlewares: https://ez.robintail.cz/v21.10.0/middlewares
  2. ResultHandler: https://ez.robintail.cz/v21.10.0/response-customization

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@RobinTail
Comment options

@marcelmatko
Comment options

@marcelmatko
Comment options

@RobinTail
Comment options

@marcelmatko
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants