To log all values of an object at every depth instead of getting `[Object object]` after the first level, use `console.dir()`:
```js
const obj = {
a: 1,
b: {
c: 2,
d: { e: 3 }
},
f: [4, 5, { g: 6 }],
};
console.dir(obj, { depth: null });
```
An alternative method would be to use `JSON.stringify` with the appropriate parameters:
```js
const obj = {
a: 1,
b: {
c: 2,
d: { e: 3 }
},
f: [4, 5, { g: 6 }],
};
console.log(JSON.stringify(obj, null, 2));
```