package main
import "github.com/fanap-infra/log"
func main() {
defer log.Sync()
log.RedirectStdLog()
log.Config(log.DebugLevel, true)
// log.GetLogger()
// log.SetCaller(true)
log.Warn("Not Found config file")
log.Infov("GET",
"url", "http://example.com/data.json",
)
log.Error("Fetch",
"url", "http://example.com",
"attempt", 3,
"backoff", time.Second,
)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
fanap-infra/log
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published