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

Method Writer

writer.go:25–27  ·  view source on GitHub ↗

Writer returns an io.Writer that writes to the logger at the info log level

()

Source from the content-addressed store, hash-verified

23
24// Writer returns an io.Writer that writes to the logger at the info log level
25func (entry *Entry) Writer() *io.PipeWriter {
26 return entry.WriterLevel(InfoLevel)
27}
28
29// WriterLevel returns an io.Writer that writes to the logger at the given log level
30func (entry *Entry) WriterLevel(level Level) *io.PipeWriter {

Callers 4

TestWriterSplitNewlinesFunction · 0.45
TestWriterSplitsMax64KBFunction · 0.45

Calls 1

WriterLevelMethod · 0.95

Tested by 4

TestWriterSplitNewlinesFunction · 0.36
TestWriterSplitsMax64KBFunction · 0.36