setLevel(root, Level::DEBUG); setLevel(X, Level::INFO); setLevel(XY, Level::OFF); setLevel(XYZ, Level::OFF);
setLevel(root, Level::getDebugLevel()); setLevel(X, Level::getInfoLevel()); setLevel(XY, Level::getOffLevel()); setLevel(XYZ, Level::getOffLevel());
int main(){	int result = EXIT_SUCCESS;	try	{		LoggerPtr root = Logger::getRootLogger();		LoggerPtr X = Logger::getLogger(_T("X"));		LoggerPtr XY = Logger::getLogger(_T("X.Y"));		LoggerPtr XYZ = Logger::getLogger(_T("X.Y.Z"));		setLevel(root, Level::DEBUG);		dump(root); dump(X); dump(XY); dump(XYZ);		tcout << std::endl;		setLevel(root, Level::DEBUG);		setLevel(X, Level::INFO);		setLevel(XY, Level::WARN);		setLevel(XYZ, Level::ERROR);		dump(root); dump(X); dump(XY); dump(XYZ);		tcout << std::endl;		setLevel(root, Level::DEBUG);		setLevel(X, Level::INFO);		setLevel(XY, Level::OFF);		setLevel(XYZ, Level::ERROR);		dump(root); dump(X); dump(XY); dump(XYZ);		tcout << std::endl;		setLevel(root, Level::DEBUG);		setLevel(X, Level::INFO);		setLevel(XY, Level::OFF);		setLevel(XYZ, Level::OFF);		dump(root); dump(X); dump(XY); dump(XYZ);	}	catch(Exception&)	{		result = EXIT_FAILURE;	}	return result;}