unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
6.12k stars 175 forks source link

disable compact logging for nested objects #106

Closed pi0 closed 1 year ago

pi0 commented 3 years ago

(@gkatsanos via https://github.com/nuxt-contrib/consola/commit/7ed640f399ca98de2bf1cf5e686343cfb6e2704a#commitcomment-46574499)

I passed consola.setReporters([ new consola.FancyReporter({ compact: false }) ]) and I still see

data: {
content: [
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object]
],

in the 3+ levels of nesting. Am I doing something wrong there?

pi0 commented 1 year ago

It will be possible in consola v3 via global option formatOptions.compact: false