MCPcopy
hub / github.com/sirupsen/logrus / NewEntry

Function NewEntry

entry.go:75–81  ·  view source on GitHub ↗
(logger *Logger)

Source from the content-addressed store, hash-verified

73}
74
75func NewEntry(logger *Logger) *Entry {
76 return &Entry{
77 Logger: logger,
78 // Default is three fields, plus one optional. Give a little extra room.
79 Data: make(Fields, 6),
80 }
81}
82
83func (entry *Entry) Dup() *Entry {
84 data := make(Fields, len(entry.Data))

Callers 14

TestEntryWithErrorFunction · 0.85
TestEntryWithContextFunction · 0.85
TestEntryPaniclnFunction · 0.85
TestEntryPanicfFunction · 0.85
TestEntryPanicFunction · 0.85
TestEntryHooksPanicFunction · 0.85
TestEntryLogfLevelFunction · 0.85
TestEntryFormatterRaceFunction · 0.85
newEntryMethod · 0.85

Calls

no outgoing calls

Tested by 12

TestEntryWithErrorFunction · 0.68
TestEntryWithContextFunction · 0.68
TestEntryPaniclnFunction · 0.68
TestEntryPanicfFunction · 0.68
TestEntryPanicFunction · 0.68
TestEntryHooksPanicFunction · 0.68
TestEntryLogfLevelFunction · 0.68
TestEntryFormatterRaceFunction · 0.68
TestNewlineBehaviorFunction · 0.68