MCPcopy Create free account
hub / github.com/DoNewsCode/core / Sprint

Function Sprint

logging/sprintf.go:36–38  ·  view source on GitHub ↗

Sprint returns a log entry that is formatted using fmt.Sprint just before writing to the output. This is more desirable than using fmt.Sprint from the caller's end because the cost of formatting can be avoided if the log is filtered, for example, by log level.

(args ...interface{})

Source from the content-addressed store, hash-verified

34// caller's end because the cost of formatting can be avoided if the log is
35// filtered, for example, by log level.
36func Sprint(args ...interface{}) fmt.Stringer {
37 return sprint{args: args}
38}

Callers 4

DebugMethod · 0.85
InfoMethod · 0.85
WarnMethod · 0.85
ErrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected