Skip to content
toashdPublic

About

Extended logging for Go.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log Build Status

log provides a small set of functions for extended logging. Log messages have different levels (Debug, Info, Warning, Error), are colorized per level and are prepended with an optional timestamp. Only messages greater or equal to the set log level will be logged to standard out/error.

Installation

Standard go get:

$ go get github.com/toashd/log

Usage & Example

For usage and examples see the Godoc.

alt log

Usage is easy enough:

log.Debug("debug message")
log.Info("info message")
log.Warn("warning message")
log.Error("error message")

log.Errorf("%s error message", "formatted")

Color and timestamp are enabled by default but can be easily disabled.

License

MIT

About

Extended logging for Go.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址