MCPcopy
hub / github.com/op/go-logging / Errorf

Method Errorf

logger.go:213–215  ·  view source on GitHub ↗

Errorf logs a message using ERROR as log level.

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

Source from the content-addressed store, hash-verified

211
212// Errorf logs a message using ERROR as log level.
213func (l *Logger) Errorf(format string, args ...interface{}) {
214 l.log(ERROR, &format, args...)
215}
216
217// Warning logs a message using WARNING as log level.
218func (l *Logger) Warning(args ...interface{}) {

Callers 15

TestFormatFunction · 0.80
TestRealFuncFormatFunction · 0.80
TestStructFuncFormatFunction · 0.80
TestVarFuncFormatFunction · 0.80
TestFormatFuncNameFunction · 0.80
TestBackendFormatterFunction · 0.80
TestMultiLoggerFunction · 0.80
TestMultiLoggerLevelFunction · 0.80
TestLogCalldepthFunction · 0.80
testCallpathFunction · 0.80
TestMemoryBackendFunction · 0.80
TestChannelMemoryBackendFunction · 0.80

Calls 1

logMethod · 0.95

Tested by 15

TestFormatFunction · 0.64
TestRealFuncFormatFunction · 0.64
TestStructFuncFormatFunction · 0.64
TestVarFuncFormatFunction · 0.64
TestFormatFuncNameFunction · 0.64
TestBackendFormatterFunction · 0.64
TestMultiLoggerFunction · 0.64
TestMultiLoggerLevelFunction · 0.64
TestLogCalldepthFunction · 0.64
testCallpathFunction · 0.64
TestMemoryBackendFunction · 0.64
TestChannelMemoryBackendFunction · 0.64