Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
Lightstreamer::LoggerProvider Class Referenceabstract

Simple interface to be implemented to provide custom log consumers to the library. More...

#include <LoggerProvider.h>

Inheritance diagram for Lightstreamer::LoggerProvider:
Lightstreamer::ConsoleLoggerProvider

Public Member Functions

virtual LoggergetLogger (const std::string &category)=0
 Request for a Logger instance that will be used for logging occurring on the given category.
 

Detailed Description

Simple interface to be implemented to provide custom log consumers to the library.


An instance of the custom implemented class has to be passed to the library through the LightstreamerClient#setLoggerProvider.

Member Function Documentation

◆ getLogger()

virtual Logger * Lightstreamer::LoggerProvider::getLogger ( const std::string & category)
pure virtual

Request for a Logger instance that will be used for logging occurring on the given category.

It is suggested, but not mandatory, that subsequent calls to this method related to the same category return the same Logger instance.

Parameters
categorythe log category all messages passed to the given Logger instance will pertain to.
Returns
A Logger instance that will receive log lines related to the given category.

Implemented in Lightstreamer::ConsoleLoggerProvider.


The documentation for this class was generated from the following file: