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

Function ExampleTrace

log/log_example_test.go:72–77  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

70
71// Example of a log at a particular "level" (in this case, "trace")
72func ExampleTrace() {
73 setup()
74 log.Trace().Msg("hello world")
75
76 // Output: {"level":"trace","time":1199811905,"message":"hello world"}
77}
78
79// Example of a log at a particular "level" (in this case, "debug")
80func ExampleDebug() {

Callers

nothing calls this directly

Calls 3

TraceFunction · 0.92
setupFunction · 0.85
MsgMethod · 0.80

Tested by

no test coverage detected