Skip to content

aybabtme/log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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!")

Releases

No releases published

Packages

No packages published

Languages