Skip to content

omeid/log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOG

Minimalist log with semantic API and multi level lable.

GoDoc

package main

import "github.com/omeid/log"

func main() {
  l := log.New("")

  l.Info("I don't have a label. :(")
  l.Warn("This is a warning.")
  l.Error("This is a phony error.")

  c := l.New("child: ")
  c.Info("Check out my label!")
  c = c.New("grandchild: ")
  c.Notice("See, we can go deeper!")
}

Will produce:

[INFO] I don't have a label. :( 
[WARN] This is a warning. 
[ERR!] This is a phony error. 
[INFO] child: Check out my label! 
[NOTE] child: grandchild: See, we can go deeper! 

LICENSE

MIT.

About

Minimalist semantic log with multi-level labels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages