Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
#include <TransactionConsumer.h>
Inheritance diagram for acdk::util::logging::TransactionConsumer:
List of all members.
Detailed Description
The TransactionConsumer wrapps the logging into a transaction.
From a begin of a logging transaction all log records will be kept in the memory. If the transaction will be commited all records of the transaction will be discarged. If the the transaction will be roll back all log records of the transaction will be written to the underlying consumer. The TransactionConsumer is usefull not to waste the log files with superflous information, but in case of an error situation give supporters full trace information about the situation. - Author:
- Roger Rene Kommer
Constructor & Destructor Documentation
acdk::util::logging::TransactionConsumer::TransactionConsumer |
( |
IN(RLogConsumer) |
consumer, |
|
|
int |
rollBackMinLevel |
|
) |
[inline] |
|
Member Function Documentation
void acdk::util::logging::TransactionConsumer::begin |
( |
|
) |
[inline] |
|
|
Start new sub transaction.
should be closed by commit |
void acdk::util::logging::TransactionConsumer::commit |
( |
|
) |
|
|
|
throws away all log records of this level
|
void acdk::util::logging::TransactionConsumer::publish |
( |
IN(RLogRecord) |
rec |
) |
[inline, virtual] |
|
void acdk::util::logging::TransactionConsumer::rollback |
( |
|
) |
|
|
|
write all LogRecors into underlying consumer
|
Member Data Documentation
|
if LogLevel is >- _rollBackLogLevel rollback will be called and recorded LogRecors will be written to underlying consumer
|
|