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

Function append

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

Source from the content-addressed store, hash-verified

411 const formatValue = (value: string): string => value.match(textOnly) ? value : quoteValue(value)
412 const format = (label: string, value: string): string => `${effect.formatLabel(label)}=${formatValue(value)}`
413 const append = (label: string, value: string): string => " " + format(label, value)
414
415 let out = format("timestamp", date.toISOString())
416 out += append("level", logLevel.toUpperCase())

Callers 2

formatFunction · 0.70
Array.tsFile · 0.70

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected