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

[improvement] logger formatter is not reusable #1768

Closed
huahuayu opened this issue Feb 9, 2019 · 0 comments
Closed

[improvement] logger formatter is not reusable #1768

huahuayu opened this issue Feb 9, 2019 · 0 comments

Comments

@huahuayu
Copy link

huahuayu commented Feb 9, 2019

Description

I want to customize the logger format, by using below code:

	e := gin.New()
	e.Use(gin.LoggerWithConfig(config))

the config is like this:
image

The red functions & variable above is private, so I have to redundant define them to my package, they should be public.

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

1 participant