enh: improve winston console output

This commit is contained in:
Ben Allfree 2024-11-10 22:14:36 -08:00
parent 9e2c8a3cba
commit 0a2ab02fad

View File

@ -17,7 +17,13 @@ const format = winston.format.combine(
const filtered = Object.fromEntries( const filtered = Object.fromEntries(
Object.entries(m).filter(([key]) => typeof key === 'string'), 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 { } else {
final.push(m) final.push(m)
} }