MCPcopy Create free account
hub / github.com/DoNewsCode/core / Printf

Method Printf

otes/log.go:15–17  ·  view source on GitHub ↗

Printf implements elastic.Logger

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

Source from the content-addressed store, hash-verified

13
14// Printf implements elastic.Logger
15func (l ElasticLogAdapter) Printf(msg string, v ...interface{}) {
16 _ = l.Logging.Log("msg", fmt.Sprintf(msg, v...))
17}

Callers 7

TestEsLogAdapter_PrintfFunction · 0.95
ExampleC_AddModuleFuncFunction · 0.45
ExampleFunction · 0.45
ExampleFunction · 0.45
ServeHTTPMethod · 0.45
ExampleBaggage_UnmarshalFunction · 0.45

Calls 2

LogMethod · 0.80
SprintfMethod · 0.65

Tested by 7

TestEsLogAdapter_PrintfFunction · 0.76
ExampleC_AddModuleFuncFunction · 0.36
ExampleFunction · 0.36
ExampleFunction · 0.36
ServeHTTPMethod · 0.36
ExampleBaggage_UnmarshalFunction · 0.36