import { v4 } from "uuid";
import { getSystemLogStore } from "./store.js";
export async function log(document) {
    const store = getSystemLogStore();
    const systemLogId = v4();
    await store.set(systemLogId, {
        ...document,
        timestamp: document.timestamp ?? new Date().toISOString(),
        systemLogId
    });
    return systemLogId;
}
//# sourceMappingURL=log.js.map