export function createLoggerCapture() {
    const info = [];
    const warn = [];
    const error = [];
    const success = [];
    const debug = [];
    const jsonPayloads = [];
    return {
        info,
        warn,
        error,
        success,
        debug,
        jsonPayloads,
        logger: {
            debug(message) {
                debug.push(message);
            },
            info(message) {
                info.push(message);
            },
            warn(message) {
                warn.push(message);
            },
            error(message) {
                error.push(message);
            },
            success(message) {
                success.push(message);
            },
            json(payload) {
                jsonPayloads.push(payload);
            },
        },
    };
}
