mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
19 lines
466 B
JavaScript
19 lines
466 B
JavaScript
import chalk from 'chalk';
|
|
export const printer = {
|
|
debug: msg => {
|
|
const result = chalk.green`debug` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
info: msg => {
|
|
const result = chalk.rgb(19, 167, 205)`info` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
warn: msg => {
|
|
const result = chalk.yellow`warn` + chalk.white(' - ' + msg);
|
|
console.log(result);
|
|
return result;
|
|
},
|
|
};
|