xmppd::logmessage Class Reference

#include <jabberd.h>

Public Member Functions

 logmessage (logging &log_entity, loglevel level)
 ~logmessage ()
std::ostream & operator<< (const char *text)
std::ostream & operator<< (const std::string &text)
 logmessage (const logmessage &orig)

Detailed Description

outstream used to generate a logging line

A user may write as he writes to a normal stream. On destruction the written data will be sent to the log.


Constructor & Destructor Documentation

xmppd::logmessage::logmessage ( logging log_entity,
loglevel  level 
)

instantiate a logmessage instance, which will use the logging level level

Parameters:
log_entity where the message will be written to
level the logging level to use
xmppd::logmessage::~logmessage (  ) 

destructor: will write the collected message to the logging instance

xmppd::logmessage::logmessage ( const logmessage orig  ) 

copy constructor: needed by the logging class to return a logmessage instance for the level() member


Member Function Documentation

std::ostream & xmppd::logmessage::operator<< ( const std::string &  text  ) 

to output std::string as the first text on a logging->level() rvalue

Parameters:
text the string to output
Returns:
the stream on which the output has been done, can be used to output more data using the operator<<()
std::ostream & xmppd::logmessage::operator<< ( const char *  text  ) 

to output char* as the first text on a logging->level() rvalue

Parameters:
text the string to output
Returns:
the stream on which the output has been done, can be used to output more data using the operator<<()

The documentation for this class was generated from the following files:

Generated on Fri Mar 12 06:00:16 2010 for jabberd14 by  doxygen 1.6.1