Adjust logging in library packges
Closed this issue · 2 comments
SuperQ commented
Using the chrony library forces users into using the logrus logging library. It's not a terrible choice, but it makes it such that you're stuck with it, even if you have other logging.
It would be nice if you could register a logger, similar to how we do this in gosnmp.
abulimov commented
Thank you for reporting this problem. Indeed, makes sense to avoid making library users use particular logging framework. We'll check how it's done in gosnmp and come up with some solution.
MovieStoreGuy commented
This would be awesome to configure or even if it were to adopt the stdlib log
package as part of the types.