Public Member Functions | |
ostream_Appender (Appender *appender) | |
Constructs the appender and tries to open the connection. | |
virtual | ~ostream_Appender () |
Destroyes the appender and the underlying appender. | |
virtual void | append (Logger::Level level, std::string msg, std::string category, LOG4SENDPP_INT64 stamp, const LocationInformation *loginfo, const Logger::DiagnosticInformation *diaginfo) |
Formats a message. | |
virtual void | writeString (const std::string &data) |
Appends a raw string to the current file. | |
virtual bool | isWorking () const |
Tests if the appender is correctly working. | |
Classes | |
class | StreamBuffer |
Helper buffer for output streaming. |
Definition at line 45 of file ostream_appender.h.
l4snd::ostream_Appender::ostream_Appender | ( | Appender * | appender | ) |
Constructs the appender and tries to open the connection.
appender | pointer to actual appender (take ownership) |
Definition at line 101 of file ostream_appender.cpp.
void l4snd::ostream_Appender::append | ( | Logger::Level | level, | |
std::string | msg, | |||
std::string | category, | |||
LOG4SENDPP_INT64 | stamp, | |||
const LocationInformation * | loginfo, | |||
const Logger::DiagnosticInformation * | diaginfo | |||
) | [virtual] |
Formats a message.
level | severty level | |
msg | string to log | |
category | message category | |
stamp | timestamp in milliseconds since 1.1.1970 | |
loginfo | pointer to location info or 0 | |
diaginfo | pointer to diagnostic info or 0 |
Implements l4snd::Appender.
Definition at line 118 of file ostream_appender.cpp.
References l4snd::Appender::append().
void l4snd::ostream_Appender::writeString | ( | const std::string & | data | ) | [virtual] |
Appends a raw string to the current file.
data | string with data |
Implements l4snd::Appender.
Definition at line 130 of file ostream_appender.cpp.
References l4snd::Appender::writeString().
bool l4snd::ostream_Appender::isWorking | ( | ) | const [virtual] |
Tests if the appender is correctly working.
Implements l4snd::Appender.
Definition at line 137 of file ostream_appender.cpp.
References l4snd::Appender::isWorking().