MCPcopy
hub / github.com/TarsCloud/TarsGo / Errorf

Method Errorf

tars/util/rogger/logger.go:334–336  ·  view source on GitHub ↗

Errorf logs interface in Error loglevel with formating string

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

Source from the content-addressed store, hash-verified

332
333// Errorf logs interface in Error loglevel with formating string
334func (l *Logger) Errorf(format string, v ...interface{}) {
335 l.Writef(0, ERROR, format, v)
336}
337
338func (l *Logger) Writef(depth int, level LogLevel, format string, v []interface{}) {
339 if level < logLevel {

Callers 15

GetConfigListMethod · 0.45
getConfigMethod · 0.45
TarsInvokeMethod · 0.45
doInvokeMethod · 0.45
InvokeMethod · 0.45
initConfigMethod · 0.45
RunMethod · 0.45
graceRestartMethod · 0.45
graceShutdownMethod · 0.45
TraceFunction · 0.45
TestHashNewFunction · 0.45
ReportNotifyInfoMethod · 0.45

Calls 1

WritefMethod · 0.95

Tested by 15

TestHashNewFunction · 0.36
TestSetMaxPackageLengthFunction · 0.36
TestBuffer_ResetFunction · 0.36
TestBuffer_slice_uint8Function · 0.36
TestBuffer_slice_int8Function · 0.36
TestBuffer_bytesFunction · 0.36
TestBuffer_boolFunction · 0.36
TestBuffer_float32Function · 0.36
TestBuffer_float64Function · 0.36