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

Method PrintFn

logger.go:268–272  ·  view source on GitHub ↗
(fn LogFunction)

Source from the content-addressed store, hash-verified

266}
267
268func (logger *Logger) PrintFn(fn LogFunction) {
269 entry := logger.newEntry()
270 entry.Print(fn()...)
271 logger.releaseEntry(entry)
272}
273
274func (logger *Logger) WarnFn(fn LogFunction) {
275 logger.LogFn(WarnLevel, fn)

Callers 1

PrintFnFunction · 0.80

Calls 3

newEntryMethod · 0.95
releaseEntryMethod · 0.95
PrintMethod · 0.65

Tested by

no test coverage detected