MCPcopy
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
90func 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
98func ExampleLogger_Println() {
99 log := zerolog.New(os.Stdout)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
PrintfMethod · 0.80

Tested by

no test coverage detected