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

Method newEntry

logger.go:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (logger *Logger) newEntry() *Entry {
99 entry, ok := logger.entryPool.Get().(*Entry)
100 if ok {
101 return entry
102 }
103 return NewEntry(logger)
104}
105
106func (logger *Logger) releaseEntry(entry *Entry) {
107 entry.Data = map[string]interface{}{}

Callers 13

WithFieldMethod · 0.95
WithFieldsMethod · 0.95
WithErrorMethod · 0.95
WithContextMethod · 0.95
WithTimeMethod · 0.95
LogfMethod · 0.95
PrintfMethod · 0.95
LogMethod · 0.95
LogFnMethod · 0.95
PrintMethod · 0.95
PrintFnMethod · 0.95
LoglnMethod · 0.95

Calls 2

NewEntryFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected