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

Add log level constants #119

Open
kevburnsjr opened this issue Nov 18, 2020 · 0 comments
Open

Add log level constants #119

kevburnsjr opened this issue Nov 18, 2020 · 0 comments

Comments

@kevburnsjr
Copy link

kevburnsjr commented Nov 18, 2020

Log levels are presently naked integers.

logger := log.NewFilterLogger(log.NewStdLogger(), 1)

Let's add constants so I don't have to RTFM in 3 months when I forget what the magic numbers mean.

logger := log.NewFilterLogger(log.NewStdLogger(), log.LevelInfo)
kevburnsjr added a commit to kevburnsjr/go-http-tunnel that referenced this issue Nov 18, 2020
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