MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / logKeyValue

Function logKeyValue

packages/baseai/src/dev/utils/dlog.ts:44–53  ·  view source on GitHub ↗
(key: string, value: unknown, sensitive?: string)

Source from the content-addressed store, hash-verified

42 : formatValue(value);
43
44const logKeyValue = (key: string, value: unknown, sensitive?: string): void => {
45 const formattedValue = redactSensitiveData(
46 value,
47 Boolean(sensitive) && isSensitiveData(sensitive || key)
48 );
49 console.log(
50 `\n${chalk.blue('======')} 👀 ${chalk.bold(key)} 👀 ${chalk.blue('======')}`
51 );
52 console.log(formattedValue);
53};
54
55export const dlog = (
56 anyKey: unknown,

Callers 1

dlogFunction · 0.85

Calls 3

redactSensitiveDataFunction · 0.85
isSensitiveDataFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected