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

Method Logf

entry.go:350–354  ·  view source on GitHub ↗

Entry Printf family functions

(level Level, format string, args ...interface{})

Source from the content-addressed store, hash-verified

348// Entry Printf family functions
349
350func (entry *Entry) Logf(level Level, format string, args ...interface{}) {
351 if entry.Logger.IsLevelEnabled(level) {
352 entry.Log(level, fmt.Sprintf(format, args...))
353 }
354}
355
356func (entry *Entry) Tracef(format string, args ...interface{}) {
357 entry.Logf(TraceLevel, format, args...)

Callers 8

TestEntryLogfLevelFunction · 0.95
TracefMethod · 0.95
DebugfMethod · 0.95
InfofMethod · 0.95
WarnfMethod · 0.95
ErrorfMethod · 0.95
FatalfMethod · 0.95
PanicfMethod · 0.95

Calls 2

LogMethod · 0.95
IsLevelEnabledMethod · 0.80

Tested by 1

TestEntryLogfLevelFunction · 0.76