CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::LogReceiver Class Referenceabstract

Callback interface for receiving log entries produced through LogSystem. More...

#include <Utils.h>

Inheritance diagram for cmlabs::LogReceiver:
[legend]

Public Member Functions

 LogReceiver ()
virtual bool logEntry (LogEntry *entry)=0
 Handle one log record.

Detailed Description

Callback interface for receiving log entries produced through LogSystem.

Implement logEntry() and register the object with LogSystem::SetLogReceiver() to redirect all logging (e.g. into the Psyclone system log space) instead of stdout/file output.

Definition at line 256 of file Utils.h.

Constructor & Destructor Documentation

◆ LogReceiver()

cmlabs::LogReceiver::LogReceiver ( )
inline

Definition at line 258 of file Utils.h.

Member Function Documentation

◆ logEntry()

virtual bool cmlabs::LogReceiver::logEntry ( LogEntry * entry)
pure virtual

Handle one log record.

Parameters
entryBorrowed pointer, valid only for the duration of the call.
Returns
true if consumed.

Implemented in cmlabs::PsySpace.


The documentation for this class was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/Utils.h