Files
sim/lib/logging.ts
2025-02-19 00:44:59 -08:00

16 lines
301 B
TypeScript

import { db } from '@/db'
import { consoleLog } from '@/db/schema'
export interface LogEntry {
id: string
workflowId: string
executionId: string
level: string
message: string
createdAt: Date
}
export async function persistLog(log: LogEntry) {
await db.insert(consoleLog).values(log)
}