MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / logValue

Method logValue

packages/baseai/src/utils/logger.ts:89–102  ·  view source on GitHub ↗
(
		category: string,
		value: unknown,
		logHeader?: string
	)

Source from the content-addressed store, hash-verified

87 }
88
89 private logValue(
90 category: string,
91 value: unknown,
92 logHeader?: string
93 ): void {
94 const formattedValue = this.formatAndRedactSensitiveData(
95 value,
96 this.isSensitiveData(logHeader || category)
97 );
98 const header = logHeader ? `${chalk.blue.bold(logHeader)}` : '';
99 console.log(
100 `\n${sym.info} ${blueI(` ${category} `)} ${header}\n${formattedValue}`
101 );
102 }
103
104 public log(
105 category: LogCategories,

Callers 1

logMethod · 0.95

Calls 3

isSensitiveDataMethod · 0.95
logMethod · 0.80

Tested by

no test coverage detected