weaveworks / mesh

A tool for building distributed applications.
Apache License 2.0
889 stars 107 forks source link

Create and use Logger interface #39

Closed peterbourgon closed 8 years ago

peterbourgon commented 8 years ago

Also, provide stdlib log.Logger adapters, for the lazy.

I decided the clarity of a single-method interface outweighs the convenience of having both Printf and Println style methods, especially as all users of the package will need to bring their own implementation. As a consequence I refactored the two log(args ...interface{}) helper methods to logf(format string, args ...interface{}) and changed the callsites. Output should be equivalent.