const levelOrder = {
    debug: 10,
    info: 20,
    warn: 30,
    error: 40,
};
export function createFridayNextLogger(scope, level = "info") {
    const base = `[friday-next:${scope}]`;
    const enabled = (current) => levelOrder[current] >= levelOrder[level];
    return {
        debug: (message) => {
            if (enabled("debug"))
                console.debug(`${base} ${message}`);
        },
        info: (message) => {
            if (enabled("info"))
                console.info(`${base} ${message}`);
        },
        warn: (message) => {
            if (enabled("warn"))
                console.warn(`${base} ${message}`);
        },
        error: (message) => {
            if (enabled("error"))
                console.error(`${base} ${message}`);
        },
    };
}
