-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
-
Empty show more show less
-
5.2-beta1
The current re-implementation of the toString() method outputs a node's properties and subnodes. While this can be useful in the console, it can get pretty verbose and unreadable in logs, when using components whose log statements have been written naively relying on the default toString() implementation of nodes/content. (ie log.info("lalala {} lala", someNode"))
It'd be neat if there was a way to only apply this toString implementation in the context of the console.
I'd argue however that removing altogether might also be an option; the code doing this output could be moved to a class such as the existing DumpUtil which provide similar functionality. (and as such, in a console, you'd do DumpUtil.dump(myNode) instead of myNode. (and/or we could add support for keywords like cat or ls...)