fiber icon indicating copy to clipboard operation
fiber copied to clipboard

🤗 [Question]: Is it possible to flush all response headers with one logger format field?

Open i11010520 opened this issue 1 year ago • 1 comments

Question Description

	app.Use(logger.New(logger.Config{
		Format: "Request headers: ${reqHeaders}\nResponse headers:${?}",
	}))

How to print out response headers like ${reqHeaders}? The ${respHeader:SOMEONE} is not flexible for this scenario.

Code Snippet (optional)

No response

Checklist:

  • [X] I agree to follow Fiber's Code of Conduct.
  • [X] I have checked for existing issues that describe my questions prior to opening this one.
  • [X] I understand that improperly formatted questions may be closed without explanation.

i11010520 avatar Dec 20 '24 11:12 i11010520

it is currently not part of the standard tags, you could add it or create a custom tag

ReneWerner87 avatar Dec 20 '24 12:12 ReneWerner87