33 lines
2.6 KiB
JavaScript
33 lines
2.6 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const i18n_1 = __importDefault(require("./i18n"));
|
|
const core_1 = require("@serverless-devs/core");
|
|
class ComponentLogger {
|
|
static setContent(content) {
|
|
ComponentLogger.CONTENT = content;
|
|
}
|
|
static log(m, color) {
|
|
core_1.Logger.log(i18n_1.default.__(m) || m, color);
|
|
}
|
|
static info(m) {
|
|
core_1.Logger.info(ComponentLogger.CONTENT, i18n_1.default.__(m) || m);
|
|
}
|
|
static debug(m) {
|
|
core_1.Logger.debug(ComponentLogger.CONTENT, i18n_1.default.__(m) || m);
|
|
}
|
|
static error(m) {
|
|
core_1.Logger.error(ComponentLogger.CONTENT, i18n_1.default.__(m) || m);
|
|
}
|
|
static warning(m) {
|
|
core_1.Logger.warn(ComponentLogger.CONTENT, i18n_1.default.__(m) || m);
|
|
}
|
|
static success(m) {
|
|
core_1.Logger.log(i18n_1.default.__(m) || m, 'green');
|
|
}
|
|
}
|
|
exports.default = ComponentLogger;
|
|
ComponentLogger.CONTENT = 'FC-REMOTE-INVOKE';
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbW1vbi9sb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxrREFBMEI7QUFDMUIsZ0RBQStDO0FBRS9DLE1BQXFCLGVBQWU7SUFFbEMsTUFBTSxDQUFDLFVBQVUsQ0FBQyxPQUFPO1FBQ3ZCLGVBQWUsQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQ3BDLENBQUM7SUFDRCxNQUFNLENBQUMsR0FBRyxDQUFDLEN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