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

Function structuredMessage

packages/effect/src/internal/logger.ts:261–272  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

259
260/** @internal */
261export const structuredMessage = (u: unknown): unknown => {
262 switch (typeof u) {
263 case "bigint":
264 case "function":
265 case "symbol": {
266 return String(u)
267 }
268 default: {
269 return Inspectable.toJSON(u)
270 }
271 }
272}
273
274/** @internal */
275export const jsonLogger = map(structuredLogger, Inspectable.stringifyCircular)

Callers 3

logger.tsFile · 0.85
prettyLoggerTtyFunction · 0.85
prettyLoggerBrowserFunction · 0.85

Calls 2

StringInterface · 0.85
toJSONMethod · 0.65

Tested by

no test coverage detected