Skip to content

komly/logga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logga - simple, "convention over configuration" logger for golang

Installation

go get "github.com/Komly/logga"

Usage

logga := logga.NewLogger(
    logga.WithLevel(logga.Error),
    logga.WithMessageTemplate("{{.Level}} - {{.Time}} -  {{.Message}}\n"),
)
logga.Debugf("Debug message: %d", 1)
logga.Infof("Info message: %d", 2)
logga.Warningf("Warning message: %d", 3)
logga.Errorf("Error message: %d", 4)
logga.Fatalf("Fatal message: %d", 5)

About

Logga - simple, "convention over configuration" logger for golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages