MCPcopy Index your code
hub / github.com/formatjs/formatjs / debug

Function debug

packages/ts-transformer/console_utils.ts:18–24  ·  view source on GitHub ↗
(message: string, ...args: any[])

Source from the content-addressed store, hash-verified

16}
17
18export async function debug(message: string, ...args: any[]): Promise<void> {
19 if (process.env.LOG_LEVEL !== 'debug') {
20 return
21 }
22 console.error(format(label('debug', message), ...args))
23 console.error('\n')
24}

Callers 3

transformWithTsFunction · 0.70
transformFnFunction · 0.70

Calls 3

errorMethod · 0.80
labelFunction · 0.70
formatFunction · 0.50

Tested by

no test coverage detected