#include <PostDataLogSender.h>
Public Member Functions | |
StringBuffer | send (const StringBuffer &msg) |
Send the message. | |
void | setTransportAgent (TransportAgent *agent) |
Set the transport agent that should be used to send the message. | |
void | addHeader (const StringBuffer &name, const StringBuffer &value) |
Add a name-value pair header to the log message. | |
~PostDataLogSender () | |
Destructor. | |
Private Attributes | |
StringBuffer | header |
TransportAgent * | agent |
void PostDataLogSender::addHeader | ( | const StringBuffer & | name, | |
const StringBuffer & | value | |||
) |
Add a name-value pair header to the log message.
name | The name of the header | |
value | The value of the header |
StringBuffer PostDataLogSender::send | ( | const StringBuffer & | msg | ) | [virtual] |
Send the message.
msg | The message to send. |
Implements LogSender.
void PostDataLogSender::setTransportAgent | ( | TransportAgent * | agent | ) |
Set the transport agent that should be used to send the message.
agent | the transport agent. |