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

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

Open
3 tasks done
i11010520 opened this issue Dec 20, 2024 · 1 comment
Open
3 tasks done

Comments

@i11010520
Copy link

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:

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

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

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

No branches or pull requests

2 participants