ntts
Version:
A CLI tool for refactoring an existing NodeJs application to a fully functional TypeScript application.
23 lines (22 loc) • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var chalk_1 = require("chalk");
/* eslint no-console: "off" */
var Logger = /** @class */ (function () {
function Logger() {
}
Logger.success = function (text) {
console.log((0, chalk_1.green)('SUCCESS'), text);
};
Logger.info = function (text) {
console.log('INFO', text);
};
Logger.warn = function (text) {
console.log((0, chalk_1.yellow)('WARN'), text);
};
Logger.error = function (text) {
console.log((0, chalk_1.redBright)('ERROR'), text);
};
return Logger;
}());
exports.default = Logger;