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

Function consoleDefaultFormatErrFieldValue

console.go:531–535  ·  view source on GitHub ↗
(noColor bool)

Source from the content-addressed store, hash-verified

529}
530
531func consoleDefaultFormatErrFieldValue(noColor bool) Formatter {
532 return func(i interface{}) string {
533 return colorize(colorize(fmt.Sprintf("%s", i), colorBold, noColor), colorRed, noColor)
534 }
535}

Callers 1

writeFieldsMethod · 0.85

Calls 1

colorizeFunction · 0.85

Tested by

no test coverage detected