By default OmmConsumer class setup to print all the REST debug messages to output stream when enabled. Specifying OmmRestLoggingClient in OmmConsumerConfig overwrites this behaviour.
The following code snippet shows basic usage of OmmRestLoggingClient class in a simple consumer type app. User declares new class as derived from class OmmRestLoggingClient. Then registers the callback client (instance of the derived class) in OmmConsumerConfig.
{
};
AppRestClient restClient;
OmmConsumer consumer( OmmConsumerConfig().restLoggingCallback( restClient ) );
OmmConsumer consumer( OmmConsumerConfig().restLoggingCallback( restClient, closure ) );
virtual void onRestLoggingEvent(const OmmConsumerRestLoggingEvent &ommLogRestEvent)=0
- See also
- OmmConsumer, OmmConsumerConfig, OmmConsumerRestLoggingEvent
Definition at line 60 of file OmmRestLoggingClient.h.