Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rs/zerolog
/ ExampleLogger_Print
Function
ExampleLogger_Print
log_example_test.go:82–88 · log_example_test.go::ExampleLogger_Print
()
Source
from the content-addressed store, hash-verified
80
}
81
82
func
ExampleLogger_Print() {
83
log := zerolog.New(os.Stdout)
84
85
log.Print(
"hello world"
)
86
87
// Output: {
"level"
:
"debug"
,
"message"
:
"hello world"
}
88
}
89
90
func
ExampleLogger_Printf() {
91
log := zerolog.New(os.Stdout)
Callers
nothing calls this directly
Calls
2
New
Function · 0.92
Print
Method · 0.80
Tested by
no test coverage detected