refactor(monorepo): decouple api and webui into workspaces packages

This commit is contained in:
yiling
2026-06-01 23:35:00 +08:00
parent e3f4fa219e
commit 1f341c15d0
288 changed files with 18024 additions and 21178 deletions
+19
View File
@@ -0,0 +1,19 @@
import pino from 'pino'
const LOG_LEVEL = process.env.LOG_LEVEL || 'info'
const LOG_FORMAT = process.env.LOG_FORMAT || 'json'
const transport =
LOG_FORMAT === 'console'
? {
target: 'pino-pretty',
options: {
colorize: true,
},
}
: undefined
export const logger = pino({
level: LOG_LEVEL,
transport,
})