MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewEntry

Function NewEntry

utils/log/entrylogwrapper.go:29–35  ·  view source on GitHub ↗

NewEntry returns new entry for logrus logger.

(logger *Logger)

Source from the content-addressed store, hash-verified

27
28// NewEntry returns new entry for logrus logger.
29func NewEntry(logger *Logger) *Entry {
30 return &Entry{
31 Logger: (*logrus.Logger)(logger),
32 // Default is five fields, give a little extra room
33 Data: make(logrus.Fields, 5),
34 }
35}
36
37// Returns the string representation from the reader and ultimately the formatter.
38func (entry *Entry) String() (string, error) {

Callers 1

TestWithFieldFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWithFieldFunction · 0.68