git-http-backend icon indicating copy to clipboard operation
git-http-backend copied to clipboard

Add ability to pass in a logger

Open josegonzalez opened this issue 4 years ago • 0 comments

Would be great if we could pass in a Logger somehow to perform logging. This would allow users of the library to change the logging to match what they have within their applications.

The alternative is setting the standard logger via:

import "log"

...

log.SetFlags(0)
log.SetOutput(someLogger)

But the log output doesn't contain a level at that point because of the log.Printf calls (so I guess it would also be nice to change those to something that is a level...).

josegonzalez avatar Dec 18 '20 05:12 josegonzalez