ae6rt / decap

A CI Build Server with a Kubernetes Backend
MIT License
8 stars 1 forks source link

Implement debug-logging checks in the log.Logger #28

Open ae6rt opened 7 years ago

ae6rt commented 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.

ae6rt commented 7 years ago

This means the custom Logger would need Debug(msg)- and INFO(msg)-type methods to discern the caller's intent.

ae6rt commented 7 years ago

https://github.com/go-kit/kit/tree/master/log