feat:Libmap的MaxAge 与 Logger

This commit is contained in:
Tianpao
2025-10-06 15:36:13 +08:00
parent 8f29a412cf
commit e4e07ac268
8 changed files with 275 additions and 22 deletions

14
src/utils/logger.ts Normal file
View File

@@ -0,0 +1,14 @@
import {pino} from 'pino'
export const logger = pino({
level: process.env.LOGLEVEL || 'info',
transport: process.env.PLAIN_LOG
? undefined
: {
target: 'pino-pretty',
options: {
translateTime: 'SYS:standard',
singleLine: true,
},
},
})