From f5856fa88833c7184007469210f7776bcecf1eb5 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Sun, 11 Aug 2024 07:56:20 -0600 Subject: [PATCH] feat: improve logging of nested obj Closes #1227 --- packages/input-output-logger/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/input-output-logger/index.js b/packages/input-output-logger/index.js index 86d049fab..711535f68 100644 --- a/packages/input-output-logger/index.js +++ b/packages/input-output-logger/index.js @@ -1,7 +1,9 @@ import { Transform } from 'node:stream' const defaults = { - logger: console.log, + logger: (message) => { + console.log(JSON.stringify(message)) + }, awsContext: false, omitPaths: [], mask: undefined