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

Function ExampleWarn

log/log_example_test.go:96–101  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

94
95// Example of a log at a particular "level" (in this case, "warn")
96func ExampleWarn() {
97 setup()
98 log.Warn().Msg("hello world")
99
100 // Output: {"level":"warn","time":1199811905,"message":"hello world"}
101}
102
103// Example of a log at a particular "level" (in this case, "error")
104func ExampleError() {

Callers

nothing calls this directly

Calls 3

WarnFunction · 0.92
setupFunction · 0.85
MsgMethod · 0.80

Tested by

no test coverage detected