RF: reduced code redundancy for visual logging by making a logAttrib tool.