"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeDebugHandler = void 0;
const debug_1 = __importDefault(require("debug"));
const mainLogger = (0, debug_1.default)('appli');
function makeDebugHandler({ label = 'no-label' }) {
    label = label.replace(/ /g, '-').toLowerCase();
    const logger = mainLogger.extend(label);
    return { log };
    function log(message) {
        logger(message);
    }
}
exports.makeDebugHandler = makeDebugHandler;
