MCPcopy
hub / github.com/simstudioai/sim / formatArgs

Method formatArgs

packages/logger/src/index.ts:217–223  ·  view source on GitHub ↗

* Format arguments for logging, converting objects to JSON strings

(args: unknown[])

Source from the content-addressed store, hash-verified

215 * Format arguments for logging, converting objects to JSON strings
216 */
217 private formatArgs(args: unknown[]): unknown[] {
218 return args.map((arg) => {
219 if (arg === null || arg === undefined) return arg
220 if (typeof arg === 'object') return formatObject(arg, this.isDev)
221 return arg
222 })
223 }
224
225 /**
226 * Internal method to log a message with the specified level

Callers 1

logMethod · 0.95

Calls 1

formatObjectFunction · 0.85

Tested by

no test coverage detected