aboutsummaryrefslogtreecommitdiffstats
path: root/packages/benchmarks/src/log.ts
blob: 08bb0afadf484a519b60180d576874c0a3eaf210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const ICONS = {
  step: "==",
  info: "--",
  success: "OK",
  warn: "!!",
};

export function logStep(title: string): void {
  console.log(`\n${ICONS.step} ${title}`);
}

export function logInfo(message: string): void {
  console.log(`  ${ICONS.info} ${message}`);
}

export function logSuccess(message: string): void {
  console.log(`  ${ICONS.success} ${message}`);
}

export function logWarn(message: string): void {
  console.log(`  ${ICONS.warn} ${message}`);
}