main.go 316 B

12345678910111213141516
  1. package main
  2. import (
  3. "flag"
  4. "git.giaever.org/joachimmg/go-log.git/log"
  5. )
  6. func main() {
  7. flag.Parse()
  8. log.Tracef("This is a %s-log", "trace")
  9. log.Infof("This is a %s-log", "info")
  10. log.Warningf("This is a %s-log", "warning")
  11. log.Errorf("This is a %s-log", "error")
  12. log.Panicf("This is a %s-log", "panic")
  13. }