#include <TransactionConsumer.h>
Inheritance diagram for acdk::util::logging::TransactionConsumer:
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.
Public Member Functions | |
TransactionConsumer (IN(RLogConsumer) consumer, int rollBackMinLevel) | |
void | publish (IN(RLogRecord) rec) |
Process the LogRecord. | |
void | begin () |
Start new sub transaction. | |
void | commit () |
throws away all log records of this level | |
void | rollback () |
write all LogRecors into underlying consumer | |
Protected Attributes | |
RLogConsumer | _consumer |
RLogRecordArrayArray | _queues |
int | _rollBackLogLevel |
if LogLevel is >- _rollBackLogLevel rollback will be called and recorded LogRecors will be written to underlying consumer |
|
|
|
Start new sub transaction. should be closed by commit |
|
throws away all log records of this level
|
|
Implements acdk::util::logging::AbstractLogConsumer. |
|
write all LogRecors into underlying consumer
|
|
|
|
|
|
if LogLevel is >- _rollBackLogLevel rollback will be called and recorded LogRecors will be written to underlying consumer
|