#include <rtt/Logger.hpp>
This returns an object whose scope (i.e. {...} ) is indicative for the boundaries of the module. This is reset to the previous module name (default is 'Logger') after the in object is destroyed. Practical usage must thus have the form:
{
Logger::In("Mymodule");
Logger::log() << Logger::Warning << "My warning message"<<Logger::nl;
Logger::log() << "A second message, still in MyModule"<<Logger::nl;
}
Logger::log() << Logger::Info << "A message in module 'Logger'..."<<Logger::endl;
Definition at line 126 of file Logger.hpp.
Public Member Functions | |
| In (const char *module) | |
| ~In () | |
Public Attributes | |
| const char * | oldmod |
1.5.3