DE
Size: a a a
DE
W
DE
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
S
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
W
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
DE
W
DE
DE
W
W
DE
DE
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
S
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
W
const getLog = ({ duration }: GetLogParams): string => `
${chalk.magenta('#################################')}
${chalk.green('Request time:')} ${new Date(now)}
${chalk.green('Duration:')} ${chalk.yellow(duration, 'ms')}
${chalk.green('Status:')} ${chalk.yellow(res.statusCode)}
${chalk.green('Request id:')} ${chalk.yellow(
randomStringGenerator(),
)}
${chalk.magenta('#################################')}`;
DE
DE
.join('\n')
P
W
W
.join('\n')