Closed krzkaczor closed 1 year ago
I don't think this is a bug but I would like to specify a parameter like deep
.
Related: https://github.com/nuxt-contrib/consola/commit/7ed640f399ca98de2bf1cf5e686343cfb6e2704a
The compact: false
should expand the [Object] fields I assume.
Edit: You can actually pass a depth value. E.g.:
new consola.FancyReporter({
formatOptions: { colors: true, depth: 5 },
}),
Available options: https://nodejs.org/api/util.html#util_util_inspect_object_options
Consola v3 allows this via formatOptions
top level.
Version
v2.10.0
Reproduction link
https://repl.it/repls/RealDarkredOolanguage
Steps to reproduce
Create deeply (4 levels) nested object and try to log it.
What is expected ?
Whole object gets logged in the console.
What is actually happening?
Object is collapsed and part of it becomes simply [Object] hiding important info.
Additional comments?
This could be a configurable behaviour but I strongly belive that by default everything should be visible.