#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) | |
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.
instantiate a logmessage instance, which will use the logging level level
| 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
| std::ostream & xmppd::logmessage::operator<< | ( | const std::string & | text | ) |
to output std::string as the first text on a logging->level() rvalue
| text | the string to output |
| std::ostream & xmppd::logmessage::operator<< | ( | const char * | text | ) |
to output char* as the first text on a logging->level() rvalue
| text | the string to output |
1.6.1