Simple debug logger with colorful namespaces and log time.
The color of namespace is calculated from it's hex representation.
Inspired by debug.
go get github.com/SlavaBatig/godebug
or
dep ensure --add github.com/SlavaBatig/godebug
package main
import debug "github.com/SlavaBatig/godebug"
func main() {
debug, err := debug.Debug("test:namespace")
debug("Printed to stdout")
err("Printed to stderr")
}
