// Custom includes
#include "main.test.hh"
-#include "../../Utils/auto_unit_test.hh"
+#include <senf/Utils/auto_unit_test.hh>
#include <boost/test/test_tools.hpp>
#define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
-BOOST_AUTO_UNIT_TEST(logger)
+SENF_AUTO_UNIT_TEST(logger)
{
senf::log::StringTarget target;
target.route<senf::log::Debug>();
// We cannot easily check the exact log string since that includes the current date/time
-
+
SENF_LOG_DEFAULT_STREAM(senf::log::Debug);
SENF_LOG_DEFAULT_AREA(senf::log::DefaultArea);
SENF_LOG_DEFAULT_LEVEL(senf::log::VERBOSE);
SENF_LOG((senf::log::VERBOSE)("Log message 2"));
BOOST_CHECK( target.str().empty() );
target.clear();
-
+
SENF_LOG((senf::log::IMPORTANT)("Important message"));
std::cerr << target.str();
BOOST_CHECK( ! target.str().empty() );
target.clear();
}
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#undef prefix_
\f