log
github.com/mborders/logmatic
go get github.com/mborders/logmatic
log

github.com/mborders/logmatic

Colorized logger for Golang with dynamic log level configuration

by Matthew Borders

v0.4.0 (see all)License:MIT
go get github.com/mborders/logmatic
Readme

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

GitHub Stars

11

LAST COMMIT

2yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

1
VersionTagPublished
v0.4.0
2yrs ago
v0.0.0-20200818002034-a180b5bd0ead
2yrs ago
v0.0.0-20190113143657-d43b0f3c9ded
2yrs ago
No alternatives found
No tutorials found
Add a tutorial