You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
639 B
28 lines
639 B
|
4 years ago
|
"use strict";
|
||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
const chalk = require('chalk');
|
||
|
|
const log = console.log;
|
||
|
|
function bindInfo(onLog) {
|
||
|
|
return (message) => {
|
||
|
|
onLog && onLog(message);
|
||
|
|
info(message);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
exports.bindInfo = bindInfo;
|
||
|
|
function info(info) {
|
||
|
|
log(chalk.bold.blue(info));
|
||
|
|
}
|
||
|
|
exports.info = info;
|
||
|
|
function error(info) {
|
||
|
|
log(chalk.bold.red(info));
|
||
|
|
}
|
||
|
|
exports.error = error;
|
||
|
|
function warn(info) {
|
||
|
|
log(chalk.bold.yellow(info));
|
||
|
|
}
|
||
|
|
exports.warn = warn;
|
||
|
|
function success(info) {
|
||
|
|
log(chalk.bold.green(info));
|
||
|
|
}
|
||
|
|
exports.success = success;
|
||
|
|
//# sourceMappingURL=debugLog.js.map
|