MCPcopy
hub / github.com/rs/zerolog / ExampleDebug

Function ExampleDebug

log/log_example_test.go:80–85  ·  view source on GitHub ↗

Example of a log at a particular "level" (in this case, "debug")

()

Source from the content-addressed store, hash-verified

78
79// Example of a log at a particular "level" (in this case, "debug")
80func ExampleDebug() {
81 setup()
82 log.Debug().Msg("hello world")
83
84 // Output: {"level":"debug","time":1199811905,"message":"hello world"}
85}
86
87// Example of a log at a particular "level" (in this case, "info")
88func ExampleInfo() {

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.92
setupFunction · 0.85
MsgMethod · 0.80

Tested by

no test coverage detected