File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 1- /* *
1+ /* *
22\page subp_logger Loggers
33
44\section sec_logger Initialization of the logger
@@ -17,12 +17,12 @@ In order to activate the logger you need to add the following lines:
1717It is possible to set the output stream of the messages inside a file:
1818\code
1919 dynamicgraph::RealTimeLogger::instance();
20- of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
20+ of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
2121 dgADD_OSTREAM_TO_RTLOG (of);
22-
22+
2323 dynamicgraph::RealTimeLogger::destroy();
2424\endcode
25- Here the file is "/tmp/dg-LOGS.txt".
25+ Here the file is "/tmp/dg-LOGS.txt".
2626
2727\subsection subsec_logger_init Initialization of the logger
2828
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace dynamicgraph
4343 LoggerVerbosity alv = logger_.getVerbosity ();
4444 BOOST_CHECK (alv==VERBOSITY_ALL);
4545 }
46-
46+
4747 ~CustomEntity ()
4848 {
4949 }
@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
6969{
7070 std::ofstream of;
7171 dynamicgraph::RealTimeLogger::instance ();
72- // of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
72+ // of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
7373 // dgADD_OSTREAM_TO_RTLOG (of);
74-
74+
7575 BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, " CustomEntity" );
76-
76+
7777 dynamicgraph::CustomEntity& entity = *(dynamic_cast <dynamicgraph::CustomEntity *>(
7878 dynamicgraph::FactoryStorage::getInstance ()->newEntity (" CustomEntity" ,
7979 " my-entity-2" )));
@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
8585
8686 dynamicgraph::RealTimeLogger::destroy ();
8787}
88-
89-
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace dynamicgraph
4343 LoggerVerbosity alv = logger_.getVerbosity ();
4444 BOOST_CHECK (alv==VERBOSITY_ALL);
4545 }
46-
46+
4747 ~CustomEntity ()
4848 {
4949 }
@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger)
6969{
7070 std::ofstream of;
7171 dynamicgraph::RealTimeLogger::instance ();
72- of.open (" /tmp/dg-LOGS.txt" ,std::ofstream::out|std::ofstream::app);
72+ of.open (" /tmp/dg-LOGS.txt" ,std::ofstream::out|std::ofstream::app);
7373 dgADD_OSTREAM_TO_RTLOG (of);
74-
74+
7575 BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, " CustomEntity" );
76-
76+
7777 dynamicgraph::CustomEntity& entity = *(dynamic_cast <dynamicgraph::CustomEntity *>(
7878 dynamicgraph::FactoryStorage::getInstance ()->newEntity (" CustomEntity" ,
7979 " my-entity" )));
@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger)
8585
8686 dynamicgraph::RealTimeLogger::destroy ();
8787}
88-
89-
You can’t perform that action at this time.
0 commit comments