MCPcopy Create free account
hub / github.com/bketelsen/trace / LogMessage

Function LogMessage

log.go:43–45  ·  view source on GitHub ↗

LogMessage creates a message that complies with fmt.Stringer but also includes a message and key/value pairs for structured logging. Use it in trace.LazyLog: t.LazyLog(trace.LogMessage("found", trace.KeyValue("file", name)), false)

(message string, keyvals ...keyval)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected