Use CppUnit::assertion_traits while outputting CPPUNIT_LOG_EXPRESSION