Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rs/zerolog
/ ExampleLogger_Printf
Function
ExampleLogger_Printf
log_example_test.go:90–96 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
88
}
89
90
func
ExampleLogger_Printf() {
91
log := zerolog.New(os.Stdout)
92
93
log.Printf(
"hello %s"
,
"world"
)
94
95
// Output: {"level":"debug","message":"hello world"}
96
}
97
98
func
ExampleLogger_Println() {
99
log := zerolog.New(os.Stdout)
Callers
nothing calls this directly
Calls
2
New
Function · 0.92
Printf
Method · 0.80
Tested by
no test coverage detected