"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createEventLogger = createEventLogger;
function createEventLogger() {
    const events = [];
    return {
        emit(event, detail) {
            const payload = detail ? ` ${JSON.stringify(detail)}` : "";
            events.push(`${new Date().toISOString()} ${event}${payload}`);
        },
        getEvents() {
            return events;
        },
    };
}
//# sourceMappingURL=logger.js.map