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
+ /* *
2
2
\page subp_logger Loggers
3
3
4
4
\section sec_logger Initialization of the logger
@@ -17,12 +17,12 @@ In order to activate the logger you need to add the following lines:
17
17
It is possible to set the output stream of the messages inside a file:
18
18
\code
19
19
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);
21
21
dgADD_OSTREAM_TO_RTLOG (of);
22
-
22
+
23
23
dynamicgraph::RealTimeLogger::destroy();
24
24
\endcode
25
- Here the file is "/tmp/dg-LOGS.txt".
25
+ Here the file is "/tmp/dg-LOGS.txt".
26
26
27
27
\subsection subsec_logger_init Initialization of the logger
28
28
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace dynamicgraph
43
43
LoggerVerbosity alv = logger_.getVerbosity ();
44
44
BOOST_CHECK (alv==VERBOSITY_ALL);
45
45
}
46
-
46
+
47
47
~CustomEntity ()
48
48
{
49
49
}
@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
69
69
{
70
70
std::ofstream of;
71
71
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);
73
73
// dgADD_OSTREAM_TO_RTLOG (of);
74
-
74
+
75
75
BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, " CustomEntity" );
76
-
76
+
77
77
dynamicgraph::CustomEntity& entity = *(dynamic_cast <dynamicgraph::CustomEntity *>(
78
78
dynamicgraph::FactoryStorage::getInstance ()->newEntity (" CustomEntity" ,
79
79
" my-entity-2" )));
@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger_wrong_initialization)
85
85
86
86
dynamicgraph::RealTimeLogger::destroy ();
87
87
}
88
-
89
-
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace dynamicgraph
43
43
LoggerVerbosity alv = logger_.getVerbosity ();
44
44
BOOST_CHECK (alv==VERBOSITY_ALL);
45
45
}
46
-
46
+
47
47
~CustomEntity ()
48
48
{
49
49
}
@@ -69,11 +69,11 @@ BOOST_AUTO_TEST_CASE(debug_logger)
69
69
{
70
70
std::ofstream of;
71
71
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);
73
73
dgADD_OSTREAM_TO_RTLOG (of);
74
-
74
+
75
75
BOOST_CHECK_EQUAL (dynamicgraph::CustomEntity::CLASS_NAME, " CustomEntity" );
76
-
76
+
77
77
dynamicgraph::CustomEntity& entity = *(dynamic_cast <dynamicgraph::CustomEntity *>(
78
78
dynamicgraph::FactoryStorage::getInstance ()->newEntity (" CustomEntity" ,
79
79
" my-entity" )));
@@ -85,5 +85,3 @@ BOOST_AUTO_TEST_CASE(debug_logger)
85
85
86
86
dynamicgraph::RealTimeLogger::destroy ();
87
87
}
88
-
89
-
You can’t perform that action at this time.
0 commit comments