MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / ExampleILogger_Printf

Function ExampleILogger_Printf

logger_example_test.go:29–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func ExampleILogger_Printf() {
30 logger := &testLogger{}
31 nutsdb.SetLogger(logger)
32
33 nutsdb.GetLogger().Printf("test")
34 nutsdb.GetLogger().Printf("test: %d", 1)
35 nutsdb.GetLogger().Printf("test: %d, %s", 1, "test")
36 // Output:
37 // testlogger:test
38 // testlogger:test: 1
39 // testlogger:test: 1, test
40}

Callers

nothing calls this directly

Calls 3

SetLoggerFunction · 0.92
GetLoggerFunction · 0.92
PrintfMethod · 0.65

Tested by

no test coverage detected