MCPcopy
hub / github.com/apache/devlake / Log

Method Log

backend/impls/logruslog/logger.go:52–60  ·  view source on GitHub ↗
(level log.LogLevel, format string, a ...interface{})

Source from the content-addressed store, hash-verified

50}
51
52func (l *DefaultLogger) Log(level log.LogLevel, format string, a ...interface{}) {
53 if l.IsLevelEnabled(level) {
54 msg := fmt.Sprintf(format, a...)
55 if l.config.Prefix != "" {
56 msg = fmt.Sprintf("%s %s", l.config.Prefix, msg)
57 }
58 l.log.Log(logrus.Level(level), msg)
59 }
60}
61
62func (l *DefaultLogger) Printf(format string, a ...interface{}) {
63 l.Log(log.LOG_INFO, format, a...)

Callers 5

PrintfMethod · 0.95
DebugMethod · 0.95
InfoMethod · 0.95
WarnMethod · 0.95
ErrorMethod · 0.95

Calls 2

IsLevelEnabledMethod · 0.95
LogMethod · 0.65

Tested by

no test coverage detected