Skip to content

aybabtme/log

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Structured logger

Bare minimum structured logger.

  • Logs in JSON.
  • 3 log levels: info, error, fatal.
  • Reusable context logging
ll := log.KV("who", "world")
ll.Info("hello?")

if err := doThing(); err != nil {
    ll.Err(err).Error("this thing failed")
}
ll.KV("why", "no reason").Fatal("abort abort abort!")

About

Structured logger.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages