• Stars
    star
    16
  • Rank 1,311,288 (Top 26 %)
  • Language
    Go
  • License
    MIT License
  • Created about 6 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Colorized logger for Golang with dynamic log level configuration

GoDoc Build Status Go Report Card codecov

logmatic

Colorized logger for Golang with dynamic log level configuration

Documentation here: https://godoc.org/github.com/mborders/logmatic

Example Usage

l := logmatic.NewLogger()
l.SetLevel(logmatic.DEBUG)

l.Trace("This will not display")
l.Debug("Something happened")
l.Info("Here is some information")
l.Warn("Do not do that")
l.Error("Something bad happened...")

l.SetLevel(logmatic.TRACE)
l.Trace("Now this will display")

l.Fatal("The application will now exit")

Example results