UNPKG

@liara/cli

Version:

The command line interface for Liara

10 lines (9 loc) 319 B
import chalk from 'chalk'; export function createDebugLogger(debugEnabled = false) { return function (str) { if (debugEnabled) { // tslint:disable-next-line: no-console console.log(`${chalk.bold('[debug]')} ${chalk.gray(`[${new Date().toISOString()}]`)} ${str}`); } }; }