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

feat/logf #8

Merged
merged 2 commits into from
Aug 24, 2022
Merged

feat/logf #8

merged 2 commits into from
Aug 24, 2022

Conversation

bep
Copy link
Owner

@bep bep commented Aug 24, 2022

  • Add Logf
  • Remove NewStringFunc

bep added 2 commits August 24, 2022 22:31
I have been using this library for a few week now, and I'm mostly happy, but I really miss a Logf.

And having it implmented here is much more effective than making the caller doing the `foo.Log(logg.Strings(fmt.Sprint...` dance
all the time.

The string building is performed by `fmt.Sprintf()`, but that will not be called if the level is not met.
It's not needed when you can just do logg.StringFunc(...).
@bep bep merged commit ac765c2 into master Aug 24, 2022
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

Successfully merging this pull request may close these issues.

1 participant