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

Function ExampleInfo

log/log_example_test.go:88–93  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

86
87// Example of a log at a particular "level" (in this case, "info")
88func ExampleInfo() {
89 setup()
90 log.Info().Msg("hello world")
91
92 // Output: {"level":"info","time":1199811905,"message":"hello world"}
93}
94
95// Example of a log at a particular "level" (in this case, "warn")
96func ExampleWarn() {

Callers

nothing calls this directly

Calls 3

InfoFunction · 0.92
setupFunction · 0.85
MsgMethod · 0.80

Tested by

no test coverage detected