LOG4CXX_DEBUG(UNDEF, "Message " << i);
LOG4CXX_DEBUG(UNDEF, _T("Message ") << i);
	void common()	{		int i = 0;		// In the lines below, the category names are chosen as an aid in		// remembering their level values. In general, the category names		// have no bearing to level values.		LoggerPtr ERR = Logger::getLogger(_T("ERR"));		ERR->setLevel(Level::getErrorLevel());		LoggerPtr INF = Logger::getLogger(_T("INF"));		INF->setLevel(Level::getInfoLevel());		LoggerPtr INF_ERR = Logger::getLogger(_T("INF.ERR"));		INF_ERR->setLevel(Level::getErrorLevel());		LoggerPtr DEB = Logger::getLogger(_T("DEB"));		DEB->setLevel(Level::getDebugLevel());		// Note: categories with undefined level		LoggerPtr INF_UNDEF = Logger::getLogger(_T("INF.UNDEF"));		LoggerPtr INF_ERR_UNDEF = Logger::getLogger(_T("INF.ERR.UNDEF"));		LoggerPtr UNDEF = Logger::getLogger(_T("UNDEF"));		// These should all log.----------------------------		LOG4CXX_FATAL(ERR, _T("Message ") << i);		i++; //0		LOG4CXX_ERROR(ERR, _T("Message ") << i);		i++;		LOG4CXX_FATAL(INF, _T("Message ") << i);		i++; // 2		LOG4CXX_ERROR(INF, _T("Message ") << i);		i++;		LOG4CXX_WARN(INF, _T("Message ") << i);		i++;		LOG4CXX_INFO(INF, _T("Message ") << i);		i++;		LOG4CXX_FATAL(INF_UNDEF, _T("Message ") << i);		i++; //6		LOG4CXX_ERROR(INF_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_WARN(INF_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_INFO(INF_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_FATAL(INF_ERR, _T("Message ") << i);		i++; // 10		LOG4CXX_ERROR(INF_ERR, _T("Message ") << i);		i++;		LOG4CXX_FATAL(INF_ERR_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_ERROR(INF_ERR_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_FATAL(DEB, _T("Message ") << i);		i++; //14		LOG4CXX_ERROR(DEB, _T("Message ") << i);		i++;		LOG4CXX_WARN(DEB, _T("Message ") << i);		i++;		LOG4CXX_INFO(DEB, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(DEB, _T("Message ") << i);		i++;		// defaultLevel=DEBUG		LOG4CXX_FATAL(UNDEF, _T("Message ") << i);		i++; // 19		LOG4CXX_ERROR(UNDEF, _T("Message ") << i);		i++;		LOG4CXX_WARN(UNDEF, _T("Message ") << i);		i++;		LOG4CXX_INFO(UNDEF, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(UNDEF, "Message " << i);		i++;		// -------------------------------------------------		// The following should not log		LOG4CXX_WARN(ERR, _T("Message ") << i);		i++;		LOG4CXX_INFO(ERR, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(ERR, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(INF, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(INF_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_WARN(INF_ERR, _T("Message ") << i);		i++;		LOG4CXX_INFO(INF_ERR, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(INF_ERR, _T("Message ") << i);		i++;		LOG4CXX_WARN(INF_ERR_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_INFO(INF_ERR_UNDEF, _T("Message ") << i);		i++;		LOG4CXX_DEBUG(INF_ERR_UNDEF, _T("Message ") << i);		i++;		// -------------------------------------------------		LOG4CXX_INFO(INF, _T("Messages should bear numbers 0 through 23."));	}