MCPcopy Index your code
hub / github.com/Effect-TS/effect / formatValue

Function formatValue

packages/effect/src/internal/logger.ts:183–183  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

181 { annotations, cause, date, fiberId, logLevel, message, spans }: Logger.Logger.Options<unknown>
182): string => {
183 const formatValue = (value: string): string => value.match(textOnly) ? value : quoteValue(value)
184 const format = (label: string, value: string): string => `${logSpan_.formatLabel(label)}=${formatValue(value)}`
185 const append = (label: string, value: string): string => " " + format(label, value)
186

Callers 1

formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected