log.go_ raw

   1  package pause
   2  
   3  import (
   4  	"github.com/p9c/p9/pkg/logg"
   5  )
   6  
   7  var subsystem = logg.AddLoggerSubsystem()
   8  var F, E, W, I, D, T logg.LevelPrinter = logg.GetLogPrinterSet(subsystem)
   9  
  10  func init() {
  11  	// to filter out this package, uncomment the following
  12  	// var _ = logg.AddFilteredSubsystem(subsystem)
  13  	
  14  	// to highlight this package, uncomment the following
  15  	// var _ = logg.AddHighlightedSubsystem(subsystem)
  16  	
  17  	// these are here to test whether they are working
  18  	// F.Ln("F.Ln")
  19  	// E.Ln("E.Ln")
  20  	// W.Ln("W.Ln")
  21  	// I.Ln("I.Ln")
  22  	// D.Ln("D.Ln")
  23  	// F.Ln("T.Ln")
  24  	// F.F("%s", "F.F")
  25  	// E.F("%s", "E.F")
  26  	// W.F("%s", "W.F")
  27  	// I.F("%s", "I.F")
  28  	// D.F("%s", "D.F")
  29  	// T.F("%s", "T.F")
  30  	// F.C(func() string { return "F.C" })
  31  	// E.C(func() string { return "E.C" })
  32  	// W.C(func() string { return "W.C" })
  33  	// I.C(func() string { return "I.C" })
  34  	// D.C(func() string { return "D.C" })
  35  	// T.C(func() string { return "T.C" })
  36  	// F.C(func() string { return "F.C" })
  37  	// E.Chk(errors.New("E.Chk"))
  38  	// W.Chk(errors.New("W.Chk"))
  39  	// I.Chk(errors.New("I.Chk"))
  40  	// D.Chk(errors.New("D.Chk"))
  41  	// T.Chk(errors.New("T.Chk"))
  42  }
  43