"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.censure = exports.namespaced = exports.base = void 0;
const tslib_1 = require("tslib");
const debug_1 = tslib_1.__importDefault(require("debug"));
/**
 * To enable use: `DEBUG=flayyer:* yarn dev`
 */
exports.base = debug_1.default("flayyer:create-flayyer-app");
function namespaced(...namespaces) {
    if (namespaces.length > 0) {
        return exports.base.extend(namespaces.join(":"));
    }
    return exports.base;
}
exports.namespaced = namespaced;
function censure(secret) {
    return "*".repeat((secret || "").length) || undefined;
}
exports.censure = censure;
exports.base("created debugger");
exports.default = exports.base;
