Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
func
Example_minimal() {
13
logger := logging.NewLogger(
"json"
)
14
logger.Log(
"foo"
,
"bar"
)
15
// Output:
16
// {"foo":"bar"}
17
}
18
19
func
Example_level() {
20
logger := logging.NewLogger(
"json"
)
Callers
nothing calls this directly
Calls
2
NewLogger
Function · 0.92
Log
Method · 0.80
Tested by
no test coverage detected