"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.logger = void 0;
const kleur_1 = require("kleur");
const DEBUG = process.env.DEBUG === '1';
exports.logger = {
    info(message) {
        console.log(`${(0, kleur_1.cyan)('[info]')} ${message}`);
    },
    success(message) {
        console.log(`${(0, kleur_1.green)('[ok]')} ${message}`);
    },
    warn(message) {
        console.warn(`${(0, kleur_1.yellow)('[warn]')} ${message}`);
    },
    error(message) {
        console.error(`${(0, kleur_1.red)('[error]')} ${message}`);
    },
    debug(message) {
        if (DEBUG) {
            console.log(`${(0, kleur_1.cyan)('[debug]')} ${message}`);
        }
    }
};
//# sourceMappingURL=logger.js.map