LoggingEvent(fqcn, root, Level::INFO, _T("test")))
LoggingEvent(fqcn, root, Level::getInfoLevel(), _T("test")))
int main(){	int result = EXIT_SUCCESS;	try	{		LoggerPtr root = Logger::getRootLogger();		tstring fqcn = Logger::getStaticClass().getName();		// StringMatchFilterPtr		StringMatchFilterPtr stringMatchFilter = new StringMatchFilter();		stringMatchFilter->setStringToMatch(_T("es"));		stringMatchFilter->setAcceptOnMatch(true);		tcout << _T("decision (should be ACCEPT): ")			<< (Filter::FilterDecision)stringMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		stringMatchFilter->setAcceptOnMatch(false);		tcout << _T("decision (should be DENY): ")			<< (Filter::FilterDecision)stringMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		stringMatchFilter->setStringToMatch(_T("se"));		tcout << _T("decision (should be NEUTRAL): ")			<< (Filter::FilterDecision)stringMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		// LevelMatchFilter		LevelMatchFilterPtr levelMatchFilter = new LevelMatchFilter();		levelMatchFilter->setLevelToMatch(_T("INFO"));		levelMatchFilter->setAcceptOnMatch(true);		tcout << _T("decision (should be ACCEPT): ")			<< (Filter::FilterDecision)levelMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		levelMatchFilter->setAcceptOnMatch(false);		tcout << _T("decision (should be DENY): ")			<< (Filter::FilterDecision)levelMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		levelMatchFilter->setLevelToMatch(_T("DEBUG"));		tcout << _T("decision (should be NEUTRAL): ")			<< (Filter::FilterDecision)levelMatchFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		// LevelRangeFilter		LevelRangeFilterPtr levelRangeFilter = new LevelRangeFilter();		levelRangeFilter->setLevelMin(Level::DEBUG);		levelRangeFilter->setLevelMax(Level::WARN);		levelRangeFilter->setAcceptOnMatch(true);		tcout << _T("decision (should be ACCEPT): ")			<< (Filter::FilterDecision)levelRangeFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		levelRangeFilter->setAcceptOnMatch(false);		tcout << _T("decision (should be NEUTRAL): ")			<< (Filter::FilterDecision)levelRangeFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;		tcout << _T("decision (should be DENY): ")			<< (Filter::FilterDecision)levelRangeFilter->decide(				LoggingEvent(fqcn, root, Level::ERROR, _T("test")))			<< std::endl;		// DenyAllFilter		DenyAllFilterPtr denyAllFilter = new DenyAllFilter();		tcout << _T("decision (should be DENY): ")			<< (Filter::FilterDecision)denyAllFilter->decide(				LoggingEvent(fqcn, root, Level::INFO, _T("test")))			<< std::endl;	}	catch(Exception&)	{		result = EXIT_FAILURE;	}	return result;}