Skip to content

Colorized logger for Golang with dynamic log level configuration

License

Notifications You must be signed in to change notification settings

mborders/logmatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Colorized logger for Golang with dynamic log level configuration

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages