Orocos Real-Time Toolkit  2.9.0
Public Member Functions | Public Attributes | List of all members
RTT::Logger::D Struct Reference

This hidden struct stores all data structures required for logging. More...

Public Member Functions

 D (std::ostream &str, char const *logfile_name)
 
bool maylog () const
 
bool maylogStdOut () const
 
bool maylogFile () const
 
void logit (std::ostream &(*pf)(std::ostream &))
 This function is called when a new message is ready to be written to screen, disk, or stream. More...
 
Logger::LogLevel intToLogLevel (int ll)
 
std::string showTime () const
 
std::string showLevel (LogLevel ll) const
 Convert a loglevel to a string representation. More...
 
std::string showModule () const
 

Public Attributes

std::ostream * stdoutput
 
std::stringstream logline
 
LogLevel inloglevel
 
LogLevel outloglevel
 
TimeService::ticks timestamp
 
bool started
 
bool showtime
 
bool allowRT
 
bool mlogStdOut
 
bool mlogFile
 
std::string moduleptr
 
os::Mutex inpguard
 

Detailed Description

This hidden struct stores all data structures required for logging.

Definition at line 128 of file Logger.cpp.

Constructor & Destructor Documentation

RTT::Logger::D::D ( std::ostream &  str,
char const *  logfile_name 
)
inline

Definition at line 131 of file Logger.cpp.

Member Function Documentation

Logger::LogLevel RTT::Logger::D::intToLogLevel ( int  ll)
inline

Definition at line 239 of file Logger.cpp.

References RTT::Critical, RTT::Debug, RTT::Error, RTT::Fatal, RTT::Info, RTT::Never, and RTT::Warning.

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 180 of file Logger.cpp.

bool RTT::Logger::D::maylog ( ) const
inline

Definition at line 157 of file Logger.cpp.

References RTT::RealTime.

bool RTT::Logger::D::maylogFile ( ) const
inline

Definition at line 169 of file Logger.cpp.

References RTT::Info.

bool RTT::Logger::D::maylogStdOut ( ) const
inline

Definition at line 163 of file Logger.cpp.

References RTT::Never.

std::string RTT::Logger::D::showLevel ( LogLevel  ll) const
inline

Convert a loglevel to a string representation.

Definition at line 273 of file Logger.cpp.

References RTT::Critical, RTT::Debug, RTT::Error, RTT::Fatal, RTT::Info, RTT::Never, RTT::RealTime, and RTT::Warning.

std::string RTT::Logger::D::showModule ( ) const
inline

Definition at line 306 of file Logger.cpp.

std::string RTT::Logger::D::showTime ( ) const
inline

Member Data Documentation

bool RTT::Logger::D::allowRT

Definition at line 316 of file Logger.cpp.

LogLevel RTT::Logger::D::inloglevel

Definition at line 235 of file Logger.cpp.

os::Mutex RTT::Logger::D::inpguard

Definition at line 322 of file Logger.cpp.

std::stringstream RTT::Logger::D::logline

Definition at line 218 of file Logger.cpp.

bool RTT::Logger::D::mlogFile

Definition at line 318 of file Logger.cpp.

bool RTT::Logger::D::mlogStdOut

Definition at line 318 of file Logger.cpp.

std::string RTT::Logger::D::moduleptr

Definition at line 320 of file Logger.cpp.

LogLevel RTT::Logger::D::outloglevel

Definition at line 235 of file Logger.cpp.

bool RTT::Logger::D::showtime

Definition at line 314 of file Logger.cpp.

bool RTT::Logger::D::started

Definition at line 312 of file Logger.cpp.

std::ostream* RTT::Logger::D::stdoutput

Definition at line 216 of file Logger.cpp.

TimeService::ticks RTT::Logger::D::timestamp

Definition at line 237 of file Logger.cpp.


The documentation for this struct was generated from the following file: