Skip to content
Snippets Groups Projects
Commit 483a2b9b authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Minor fix. Remove trailing whitespace

parent b6050740
No related branches found
No related tags found
No related merge requests found
/**
/**
\page subp_logger Loggers
\section sec_logger Initialization of the logger
......@@ -17,12 +17,12 @@ In order to activate the logger you need to add the following lines:
It is possible to set the output stream of the messages inside a file:
\code
dynamicgraph::RealTimeLogger::instance();
of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
dgADD_OSTREAM_TO_RTLOG (of);
dynamicgraph::RealTimeLogger::destroy();
\endcode
Here the file is "/tmp/dg-LOGS.txt".
Here the file is "/tmp/dg-LOGS.txt".
\subsection subsec_logger_init Initialization of the logger
......
......@@ -43,7 +43,7 @@ namespace dynamicgraph
LoggerVerbosity alv = logger_.getVerbosity();
BOOST_CHECK(alv==VERBOSITY_ALL);
}
~CustomEntity()
{
}
......@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
{
std::ofstream of;
dynamicgraph::RealTimeLogger::instance();
//of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
//of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
// dgADD_OSTREAM_TO_RTLOG (of);
BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, "CustomEntity");
dynamicgraph::CustomEntity& entity = *(dynamic_cast<dynamicgraph::CustomEntity *>(
dynamicgraph::FactoryStorage::getInstance()->newEntity("CustomEntity",
"my-entity-2")));
......@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
dynamicgraph::RealTimeLogger::destroy();
}
......@@ -43,7 +43,7 @@ namespace dynamicgraph
LoggerVerbosity alv = logger_.getVerbosity();
BOOST_CHECK(alv==VERBOSITY_ALL);
}
~CustomEntity()
{
}
......@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger)
{
std::ofstream of;
dynamicgraph::RealTimeLogger::instance();
of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
dgADD_OSTREAM_TO_RTLOG (of);
BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, "CustomEntity");
dynamicgraph::CustomEntity& entity = *(dynamic_cast<dynamicgraph::CustomEntity *>(
dynamicgraph::FactoryStorage::getInstance()->newEntity("CustomEntity",
"my-entity")));
......@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger)
dynamicgraph::RealTimeLogger::destroy();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment