Add backend request and workspace logging

This commit is contained in:
Nathan Flurry 2026-03-12 23:25:14 -07:00
parent cfa0c9cfe2
commit d0ed0a4402
5 changed files with 178 additions and 45 deletions

View file

@ -0,0 +1,11 @@
import { pino } from "pino";
const level = process.env.FOUNDRY_LOG_LEVEL ?? process.env.LOG_LEVEL ?? process.env.RIVET_LOG_LEVEL ?? "info";
export const logger = pino({
level,
base: {
service: "foundry-backend",
},
timestamp: pino.stdTimeFunctions.isoTime,
});