"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
exports.logger = exports.LoggerInstance = void 0;
var chalk_1 = __importDefault(require("chalk"));
var LoggerInstance = (function () {
    function LoggerInstance() {
    }
    LoggerInstance.init = function () {
        if (!LoggerInstance.instance) {
            LoggerInstance.instance = new LoggerInstance();
        }
        return LoggerInstance.instance;
    };
    LoggerInstance.prototype.log = function () {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        console.log.apply(console, args);
    };
    LoggerInstance.prototype.info = function (msg) {
        console.log(chalk_1["default"].blue('info '), msg);
    };
    LoggerInstance.prototype.warn = function (msg) {
        console.log(chalk_1["default"].keyword('orange')('warning '), msg);
    };
    LoggerInstance.prototype.success = function (msg) {
        console.log(chalk_1["default"].green('success '), msg);
    };
    LoggerInstance.prototype.error = function (msg) {
        console.log(chalk_1["default"].red('error '), msg);
    };
    return LoggerInstance;
}());
exports.LoggerInstance = LoggerInstance;
exports.logger = LoggerInstance.init();
__exportStar(require("./my-logger"), exports);
