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

Function Example_minimal

logging/example_test.go:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func Example_minimal() {
13 logger := logging.NewLogger("json")
14 logger.Log("foo", "bar")
15 // Output:
16 // {"foo":"bar"}
17}
18
19func Example_level() {
20 logger := logging.NewLogger("json")

Callers

nothing calls this directly

Calls 2

NewLoggerFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected