Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 596 Bytes

File metadata and controls

39 lines (22 loc) · 596 Bytes

godebug

Simple debug logger with colorful namespaces and log time.

The color of namespace is calculated from it's hex representation.

Motivation

Inspired by debug.

Install

go get github.com/SlavaBatig/godebug

or

dep ensure --add github.com/SlavaBatig/godebug

Example

Code

package main

import debug "github.com/SlavaBatig/godebug"

func main() {
	debug, err := debug.Debug("test:namespace")

	debug("Printed to stdout")

	err("Printed to stderr")
}

Result printed to terminal