A lightweight logger for Go inspired by the NodeJS console
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Godeps
examples
.gitignore
LICENSE
README.md
colors.go
console.go
doc_test.go
hooks.go
logger.go

README.md

console.go godoc reference

Console is a lightweight logging tool inspired by the NodeJS console object and Scribe.js project.

As a js dev, I was lost in the Go world without my console.log.

console.Info("Some info")
console.Tag("Hello").Time().File().Log("Hello World")

With use of ansi colors, it output something like this in terminal :

[Hello] [main.go:48] 2015-02-15T09:22:06+01:00 Hello World

Console provided :

  • Info, Log, Warning and Error logging method
  • Tag, Time, File optional method
  • hook

See Godoc : http://godoc.org/github.com/guillaumewuip/console.go

Related :