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

Function newLogrus

benchmarks/logrus_test.go:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func newLogrus() *logrus.Logger {
36 return &logrus.Logger{
37 Out: io.Discard,
38 Formatter: new(logrus.JSONFormatter),
39 Hooks: make(logrus.LevelHooks),
40 Level: logrus.DebugLevel,
41 }
42}
43
44func fakeLogrusFields() logrus.Fields {
45 return logrus.Fields{

Callers 4

newDisabledLogrusFunction · 0.85
BenchmarkWithoutFieldsFunction · 0.85
BenchmarkAddingFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected