MCPcopy
hub / github.com/Effect-TS/effect / append

Function append

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

Source from the content-addressed store, hash-verified

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
187 let out = format("timestamp", date.toISOString())
188 out += append("level", logLevel.label)

Callers 4

httpRouter.tsFile · 0.85
fromIterableFunction · 0.85
Array.tsFile · 0.85
formatFunction · 0.85

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected