unjs / consola

🐨 Elegant Console Logger for Node.js and Browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

disable compact logging for nested objects

pi0 opened this issue · comments

(@gkatsanos via 7ed640f#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?

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