MCPcopy
hub / github.com/robfig/cron / Error

Method Error

logger.go:52–57  ·  view source on GitHub ↗
(err error, msg string, keysAndValues ...interface{})

Source from the content-addressed store, hash-verified

50}
51
52func (pl printfLogger) Error(err error, msg string, keysAndValues ...interface{}) {
53 keysAndValues = formatTimes(keysAndValues)
54 pl.logger.Printf(
55 formatString(len(keysAndValues)+2),
56 append([]interface{}{msg, "error", err}, keysAndValues...)...)
57}
58
59// formatString returns a logfmt-like format string for the number of
60// key/values.

Callers

nothing calls this directly

Calls 2

formatTimesFunction · 0.85
formatStringFunction · 0.85

Tested by

no test coverage detected