Logger::D Struct Reference

List of all members.


Detailed Description

This hidden struct stores all data structures required for logging.

Definition at line 98 of file Logger.cpp.


Public Member Functions

 D ()
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.
Logger::LogLevel intToLogLevel (int ll)
std::string showTime () const
std::string showLevel (LogLevel ll) const
 Convert a loglevel to a string representation.
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
const char * loggermodule
const char * moduleptr
OS::Mutex inpguard
OS::Mutex startguard

Member Function Documentation

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

References Logger::D::inloglevel, Logger::D::inpguard, Logger::D::logline, Logger::D::maylogFile(), Logger::D::maylogStdOut(), Logger::D::showLevel(), Logger::D::showModule(), Logger::D::showTime(), and Logger::D::stdoutput.

Referenced by Logger::logendl(), and Logger::lognl().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 25 17:41:56 2008 for OrocosReal-TimeToolkit by  doxygen 1.5.3