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

Method Dup

entry.go:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (entry *Entry) Dup() *Entry {
84 data := make(Fields, len(entry.Data))
85 for k, v := range entry.Data {
86 data[k] = v
87 }
88 return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time, Context: entry.Context, err: entry.err}
89}
90
91// Bytes returns the bytes representation of this entry from the formatter.
92func (entry *Entry) Bytes() ([]byte, error) {

Callers 1

logMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected