export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
export interface LogRecord {
    /** Canonical unique id assigned by the storage backend. When present, used directly as the
     *  row id; otherwise a content hash is derived. */
    logId?: string | null;
    timestamp: Date | string;
    level: LogLevel;
    message: string;
    data?: Record<string, unknown> | null;
    traceId?: string | null;
    spanId?: string | null;
    entityType?: string | null;
    entityId?: string | null;
    entityName?: string | null;
    parentEntityType?: string | null;
    parentEntityId?: string | null;
    parentEntityName?: string | null;
    rootEntityType?: string | null;
    rootEntityId?: string | null;
    rootEntityName?: string | null;
    userId?: string | null;
    organizationId?: string | null;
    resourceId?: string | null;
    runId?: string | null;
    sessionId?: string | null;
    threadId?: string | null;
    requestId?: string | null;
    environment?: string | null;
    source?: string | null;
    serviceName?: string | null;
    scope?: Record<string, unknown> | null;
    experimentId?: string | null;
    tags?: string[] | null;
    metadata?: Record<string, unknown> | null;
}
