feat(logging): add log level env variable (#2299)

This commit is contained in:
Meier Lukas
2025-02-18 22:54:15 +01:00
committed by GitHub
parent 6420feee72
commit 67d48e11d7
31 changed files with 202 additions and 183 deletions

10
packages/log/src/env.ts Normal file
View File

@@ -0,0 +1,10 @@
import { z } from "zod";
import { createEnv } from "@homarr/env";
export const env = createEnv({
server: {
LOG_LEVEL: z.enum(["debug", "info", "warn", "error"]).default("info"),
},
experimental__runtimeEnv: process.env,
});