From 43dacdba112adacfcd3490721d195941eb851a14 Mon Sep 17 00:00:00 2001 From: liuyun Date: Sat, 10 Oct 2026 21:52:34 +0800 Subject: [PATCH] feat: single-line pretty log output Co-Authored-By: Claude Opus 4.8 --- src/logging/logger.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/logger.config.ts b/src/logging/logger.config.ts index 92c2410..bf60232 100644 --- a/src/logging/logger.config.ts +++ b/src/logging/logger.config.ts @@ -14,7 +14,7 @@ export function createLoggerModule(): DynamicModule { const filePath = process.env.LOG_FILE_PATH ?? 'logs/app.log'; const stdoutTarget = pretty - ? { target: 'pino-pretty', options: { colorize: true, translateTime: 'SYS:yyyy-mm-dd HH:MM:ss.l' } } + ? { target: 'pino-pretty', options: { colorize: true, translateTime: 'SYS:yyyy-mm-dd HH:MM:ss.l', singleLine: true } } : { target: 'pino/file', options: { destination: 1 } }; const targets: any[] = [stdoutTarget];