import { v4 as uuid4 } from "uuid";
import { browserDetails } from "./browserDetails.js";
import { Environment } from "./types.js";
const initBaseLogObject = (options) => ({
  index: options.index,
  host: options.host || "NA",
  environment: options.environment || Environment.DEV,
  team: options.team,
  appName: options.appName,
  appVersion: options.appVersion || "",
  location: options.location || "NA",
  instanceId: options.instanceId || "",
  customerId: options.customerId || "",
  userId: options.userId || "",
  loanId: options.loanId,
  correlationId: uuid4().replace(/-/g, ""),
  context: browserDetails
});
export {
  initBaseLogObject
};
