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

Function ExamplePrint

log/log_example_test.go:37–42  ·  view source on GitHub ↗

Simple logging example using the Print function in the log package Note that both Print and Printf are at the debug log level by default

()

Source from the content-addressed store, hash-verified

35// Simple logging example using the Print function in the log package
36// Note that both Print and Printf are at the debug log level by default
37func ExamplePrint() {
38 setup()
39
40 log.Print("hello world")
41 // Output: {"level":"debug","time":1199811905,"message":"hello world"}
42}
43
44// Simple logging example using the Printf function in the log package
45func ExamplePrintf() {

Callers

nothing calls this directly

Calls 2

PrintFunction · 0.92
setupFunction · 0.85

Tested by

no test coverage detected