MCPcopy Create free account
hub / github.com/DNAProject/DNA / logPrint

Function logPrint

common/log/log_test.go:32–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func logPrint() {
33 Debug("debug")
34 Info("info")
35 Warn("warn")
36 Error("error")
37 Fatal("fatal")
38 Trace("trace")
39
40 testValue := 1
41 Debugf("debug %v", testValue)
42 Infof("info %v", testValue)
43 Warnf("warn %v", testValue)
44 Errorf("error %v", testValue)
45 Fatalf("fatal %v", testValue)
46 Tracef("trace %v", testValue)
47}
48
49func TestLog(t *testing.T) {
50 defer func() {

Callers 2

TestLogFunction · 0.85
TestNewLogFileFunction · 0.85

Calls 12

WarnFunction · 0.85
ErrorFunction · 0.85
FatalFunction · 0.85
TraceFunction · 0.85
DebugfFunction · 0.85
InfofFunction · 0.85
WarnfFunction · 0.85
ErrorfFunction · 0.85
FatalfFunction · 0.85
TracefFunction · 0.85
DebugFunction · 0.70
InfoFunction · 0.70

Tested by

no test coverage detected