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

Function label

packages/ts-transformer/console_utils.ts:11–16  ·  view source on GitHub ↗
(level: LogLevel, message: string)

Source from the content-addressed store, hash-verified

9}
10
11function label(level: LogLevel, message: string) {
12 return `[@formatjs/ts-transformer] [${styleText(
13 LEVEL_COLORS[level],
14 level.toUpperCase()
15 )}] ${message}`
16}
17
18export async function debug(message: string, ...args: any[]): Promise<void> {
19 if (process.env.LOG_LEVEL !== 'debug') {

Callers 1

debugFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected