MCPcopy Create free account
hub / github.com/Effect-TS/effect / append

Function append

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

Source from the content-addressed store, hash-verified

184 const formatValue = (value: string): string => value.match(textOnly) ? value : quoteValue(value)
185 const format = (label: string, value: string): string => `${logSpan_.formatLabel(label)}=${formatValue(value)}`
186 const append = (label: string, value: string): string => " " + format(label, value)
187
188 let out = format("timestamp", date.toISOString())
189 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