Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
dynamic-graph
Commits
483a2b9b
Commit
483a2b9b
authored
Mar 26, 2019
by
Olivier Stasse
Browse files
Minor fix. Remove trailing whitespace
parent
b6050740
Changes
3
Hide whitespace changes
Inline
Side-by-side
doc/additionalDoc/debug-logger.h
View file @
483a2b9b
/**
/**
\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
...
...
tests/debug-logger-winit.cpp
View file @
483a2b9b
...
...
@@ -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
();
}
tests/debug-logger.cpp
View file @
483a2b9b
...
...
@@ -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
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment