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

Function label

packages/cli-lib/console_utils.ts:42–47  ·  view source on GitHub ↗
(level: LogLevel, message: string)

Source from the content-addressed store, hash-verified

40}
41
42function label(level: LogLevel, message: string) {
43 return `[@formatjs/cli] [${styleText(
44 LEVEL_COLORS[level],
45 level.toUpperCase()
46 )}] ${message}`
47}
48
49export async function debug(message: string, ...args: any[]): Promise<void> {
50 if (process.env.LOG_LEVEL !== 'debug') {

Callers 2

debugFunction · 0.70
warnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected