alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
17 lines (14 loc) • 412 B
text/typescript
import { type Static, z } from "alepha";
export const logEntrySchema = z.object({
level: z.enum(["SILENT", "TRACE", "DEBUG", "INFO", "WARN", "ERROR"]),
message: z.text({
size: "rich",
}),
service: z.text(),
module: z.text(),
context: z.text().optional(),
app: z.text().optional(),
data: z.any().optional(),
timestamp: z.number(),
});
export type LogEntry = Static<typeof logEntrySchema>;