mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-21 00:04:53 +00:00
Add backend request and workspace logging
This commit is contained in:
parent
cfa0c9cfe2
commit
d0ed0a4402
5 changed files with 178 additions and 45 deletions
11
foundry/packages/backend/src/logging.ts
Normal file
11
foundry/packages/backend/src/logging.ts
Normal 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,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue