When I log a JS object through the log methods, the object gets serialized to [object Object]. This is never what you want, really - what you DO want is the serialized version (JSON-style).
That is - instead of:
var err = { error: 'such hard to debug' };
log.error(JSON.stringify(err, null, ' '));
Yep I know - but why have a utility for logging when there’s a “native” logging function that does the same? Also, there’s no control over info vs warning vs error etc with the util lib.
It’s printed out as JSON without indention. It’s a lot of variations here and I do not think one solution fits all. The good thing here is that you can always create your own.