Public Member Functions | |
D (std::ostream &str, char const *logfile_name) | |
Logger::LogLevel | intToLogLevel (int ll) |
void | logit (std::ostream &(*pf)(std::ostream &)) |
bool | maylog () const |
bool | maylogFile () const |
bool | maylogStdOut () const |
std::string | showLevel (LogLevel ll) const |
std::string | showModule () const |
std::string | showTime () const |
Public Attributes | |
bool | allowRT |
LogLevel | inloglevel |
os::Mutex | inpguard |
std::stringstream | logline |
bool | mlogFile |
bool | mlogStdOut |
std::string | moduleptr |
LogLevel | outloglevel |
bool | showtime |
bool | started |
std::ostream * | stdoutput |
TimeService::ticks | timestamp |
This hidden struct stores all data structures required for logging.
Definition at line 100 of file Logger.cpp.
RTT::Logger::D::D | ( | std::ostream & | str, |
char const * | logfile_name | ||
) | [inline] |
Definition at line 103 of file Logger.cpp.
Logger::LogLevel RTT::Logger::D::intToLogLevel | ( | int | ll | ) | [inline] |
Definition at line 210 of file Logger.cpp.
void RTT::Logger::D::logit | ( | std::ostream &(*)(std::ostream &) | pf | ) | [inline] |
This function is called when a new message is ready to be written to screen, disk, or stream. 'logline' or 'remotestream' contain a single log message. Time and location is prepended.
Definition at line 148 of file Logger.cpp.
bool RTT::Logger::D::maylog | ( | ) | const [inline] |
Definition at line 125 of file Logger.cpp.
bool RTT::Logger::D::maylogFile | ( | ) | const [inline] |
Definition at line 137 of file Logger.cpp.
bool RTT::Logger::D::maylogStdOut | ( | ) | const [inline] |
Definition at line 131 of file Logger.cpp.
std::string RTT::Logger::D::showLevel | ( | LogLevel | ll | ) | const [inline] |
Convert a loglevel to a string representation.
Definition at line 244 of file Logger.cpp.
std::string RTT::Logger::D::showModule | ( | ) | const [inline] |
Definition at line 277 of file Logger.cpp.
std::string RTT::Logger::D::showTime | ( | ) | const [inline] |
Definition at line 233 of file Logger.cpp.
Definition at line 287 of file Logger.cpp.
Definition at line 206 of file Logger.cpp.
Definition at line 293 of file Logger.cpp.
std::stringstream RTT::Logger::D::logline |
Definition at line 191 of file Logger.cpp.
Definition at line 289 of file Logger.cpp.
Definition at line 289 of file Logger.cpp.
std::string RTT::Logger::D::moduleptr |
Definition at line 291 of file Logger.cpp.
Definition at line 206 of file Logger.cpp.
Definition at line 285 of file Logger.cpp.
Definition at line 283 of file Logger.cpp.
std::ostream* RTT::Logger::D::stdoutput |
Definition at line 189 of file Logger.cpp.
Definition at line 208 of file Logger.cpp.