API Guides > ConceptRT 3.x
RealtimeDataLoggerAdapter< RealtimeBufferSize, OutputLoggerCount > Class Template Reference

Real-time DataLogger Adapter : A real-time featured logger. More...

Detailed Description

template<Int32 RealtimeBufferSize, Int32 OutputLoggerCount>
class ConceptRT::RealtimeDataLoggerAdapter< RealtimeBufferSize, OutputLoggerCount >

Real-time DataLogger Adapter : A real-time featured logger.

Template Parameters
RealtimeBufferSizeRealtime buffer size.
OutputLoggerCountOutput logger max count.

A specific message is added in the logger whenever the buffer is overflowed.

Note
As RealtimeDataLoggerAdapter works with BackgroundService, ConceptRTComponentsInitialize() must be call at the beginning of the application in order to start the mechanism.
+ Inheritance diagram for RealtimeDataLoggerAdapter< RealtimeBufferSize, OutputLoggerCount >:

Public Member Methods

 RealtimeDataLoggerAdapter ()
 Default constructor. More...
 
- Public Member Methods inherited from BaseDataLogger
const bool & GetIsEnabled () const
 Enable the logging. More...
 
const bool & GetIsEnabled ()
 Enable the logging. More...
 
void SetIsEnabled (const bool &value)
 Enable the logging. More...
 
const bool & GetTimeStamped () const
 Enable the time stamping of the logged text. More...
 
const bool & GetTimeStamped ()
 Enable the time stamping of the logged text. More...
 
void SetTimeStamped (const bool &value)
 Enable the time stamping of the logged text. More...
 
void Write (PCChar8 text)
 Writes a text. More...
 
void WriteLine (PCChar8 text="")
 Writes a text and a new line. More...
 
void Write (ISerializable &data)
 Writes the data of an ISerializable object. More...
 
void WriteLine (ISerializable &data)
 Writes the data of an ISerializable object and a new line. More...
 
void Write (PCChar8 text, ISerializable &data)
 Writes the data of an ISerializable object. More...
 
void WriteLine (PCChar8 text, ISerializable &data)
 Writes the data of an ISerializable object and a new line. More...
 

Public Attributes

TeeDataLogger< OutputLoggerCount > Output
 Output loggers. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BaseRealtimeDataLoggerAdapter
 BaseRealtimeDataLoggerAdapter (BaseLogStream &realtimeStream, BaseStaticString &nonRealtimeData, BaseTeeDataLogger &outputLoggers)
 Constructor. More...
 
void PerformWrite (PCChar8 text, ISerializable *data, bool newLine, bool timeStamp)
 Perform to write the logged message. More...
 
- Protected Member Functions inherited from BaseDataLogger
void LockedPerformWrite (PCChar8 text, ISerializable *data, bool newLine, bool timeStamp)
 Perform to write the logged message in a locked context. More...
 
- Protected Attributes inherited from BaseDataLogger
CriticalSection _criticalSection
 _criticalSection used to synchronize the writter with inner traitement mechanisms when needed. More...
 

Constructor & Destructor Documentation

Default constructor.

Fields Documentation

TeeDataLogger<OutputLoggerCount> Output

Output loggers.