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

Method Bytes

entry.go:92–94  ·  view source on GitHub ↗

Bytes returns the bytes representation of this entry from the formatter.

()

Source from the content-addressed store, hash-verified

90
91// Bytes returns the bytes representation of this entry from the formatter.
92func (entry *Entry) Bytes() ([]byte, error) {
93 return entry.Logger.Formatter.Format(entry)
94}
95
96// String returns the string representation from the reader and ultimately the
97// formatter.

Callers 13

StringMethod · 0.95
TestHookEntryIsPristineFunction · 0.80
TestFieldValueErrorFunction · 0.80
TestNoFieldValueErrorFunction · 0.80
logSomethingFunction · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
LogAndAssertJSONFunction · 0.80

Calls 1

FormatMethod · 0.65