Less obtrusive toString() implementation ?
------------------------------------------
Key: MGNLGROOVY-48
URL: http://jira.magnolia-cms.com/browse/MGNLGROOVY-48
Project: Magnolia Groovy Module
Issue Type: Improvement
Components: integration
Reporter: Grégory Joseph
Assignee: Federico Grilli
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}}...)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------