MCPcopy
hub / github.com/uber-go/zap / newLoggedEntry

Function newLoggedEntry

increase_level_test.go:32–40  ·  view source on GitHub ↗
(level zapcore.Level, msg string, fields ...zapcore.Field)

Source from the content-addressed store, hash-verified

30)
31
32func newLoggedEntry(level zapcore.Level, msg string, fields ...zapcore.Field) observer.LoggedEntry {
33 if len(fields) == 0 {
34 fields = []zapcore.Field{}
35 }
36 return observer.LoggedEntry{
37 Entry: zapcore.Entry{Level: level, Message: msg},
38 Context: fields,
39 }
40}
41
42func TestIncreaseLevelTryDecrease(t *testing.T) {
43 errorOut := &bytes.Buffer{}

Callers 2

TestIncreaseLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected