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