#include <transaction_p.h>
Public Member Functions | |
Log (WTransaction *parent, const QString &request, const QString &interface=QString()) | |
~Log () | |
deletes the logger | |
void | setRequ (const QString &, const QString &) |
logs/stores a request message | |
void | setResp (const QString &, const QString &) |
logs/stores a response message | |
void | setError (const QString &) |
logs an error, if the interface is set up to log only on errors it also logs the stored request and response | |
void | setInfo (const QString &) |
logs some informational message |
WTransaction::Log::Log | ( | WTransaction * | parent, | |
const QString & | request, | |||
const QString & | interface = QString() | |||
) |
instantiates the logger
A logger object is used by transactions to output information about the message exchange that is going on. Depending on the log level of the interface the logger will log very tersely or verbosely. It can log messages immediately or store them to be logged in case of errors.
parent | the transaction this is about | |
request | the name of the request this transaction issues | |
interface | the name of the interface that is used |
WTransaction::Log::~Log | ( | ) |
deletes the logger
void WTransaction::Log::setError | ( | const QString & | s | ) |
logs an error, if the interface is set up to log only on errors it also logs the stored request and response
void WTransaction::Log::setInfo | ( | const QString & | s | ) |
logs some informational message
void WTransaction::Log::setRequ | ( | const QString & | h, | |
const QString & | d | |||
) |
logs/stores a request message
void WTransaction::Log::setResp | ( | const QString & | h, | |
const QString & | d | |||
) |
logs/stores a response message