Open ae6rt opened 7 years ago
Using a custom io.Writer that checks the logging-state channel, we can check whether to log in the logger vs in the application calling code.
This means the custom Logger would need Debug(msg)- and INFO(msg)-type methods to discern the caller's intent.
https://github.com/go-kit/kit/tree/master/log
Using a custom io.Writer that checks the logging-state channel, we can check whether to log in the logger vs in the application calling code.