Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
Lightstreamer::ConsoleLoggerProvider Class Reference

Simple concrete logging provider that logs on the system console. More...

#include <ConsoleLoggerProvider.h>

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

Public Member Functions

 ConsoleLoggerProvider (ConsoleLogLevel level)
 Creates an instance of the concrete system console logger.
 
LIGHTSTREAMER_WIN_API LoggergetLogger (const std::string &category) override
 Request for a Logger instance that will be used for logging occurring on the given category.
 

Detailed Description

Simple concrete logging provider that logs on the system console.

To be used, an instance of this class has to be passed to the library through the LightstreamerClient#setLoggerProvider().

Constructor & Destructor Documentation

◆ ConsoleLoggerProvider()

Lightstreamer::ConsoleLoggerProvider::ConsoleLoggerProvider ( ConsoleLogLevel level)
inline

Creates an instance of the concrete system console logger.

Parameters
levelThe desired logging level. See ConsoleLogLevel.

Member Function Documentation

◆ getLogger()

LIGHTSTREAMER_WIN_API Logger * Lightstreamer::ConsoleLoggerProvider::getLogger ( const std::string & category)
overridevirtual

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.

Implements Lightstreamer::LoggerProvider.


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