From 0a2ab02fad1cc91bf7b26853c9bcc4943611ce8e Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 10 Nov 2024 22:14:36 -0800 Subject: [PATCH] enh: improve winston console output --- packages/pockethost/src/core/winston.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/pockethost/src/core/winston.ts b/packages/pockethost/src/core/winston.ts index 65b051d2..1cbcfbeb 100644 --- a/packages/pockethost/src/core/winston.ts +++ b/packages/pockethost/src/core/winston.ts @@ -17,7 +17,13 @@ const format = winston.format.combine( const filtered = Object.fromEntries( Object.entries(m).filter(([key]) => typeof key === 'string'), ) - final.push(inspect(filtered, { depth: null })) + final.push( + inspect(filtered, { + depth: null, + compact: true, + breakLength: Infinity, + }), + ) } else { final.push(m) }