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

Interface to be implemented to consume log from the library. More...

#include <Logger.h>

Public Member Functions

virtual void error (const std::string &line)=0
 Receives log messages at Error level.
 
virtual void warn (const std::string &line)=0
 Receives log messages at Warn level.
 
virtual void info (const std::string &line)=0
 Receives log messages at Info level.
 
virtual void debug (const std::string &line)=0
 Receives log messages at Debug level.
 
virtual void trace (const std::string &line)=0
 Receives log messages at Trace level.
 
virtual void fatal (const std::string &line)=0
 Receives log messages at Fatal level.
 
virtual bool isTraceEnabled ()=0
 Checks if this logger is enabled for the Trace level.
 
virtual bool isDebugEnabled ()=0
 Checks if this logger is enabled for the Debug level.
 
virtual bool isInfoEnabled ()=0
 Checks if this logger is enabled for the Info level.
 
virtual bool isWarnEnabled ()=0
 Checks if this logger is enabled for the Warn level.
 
virtual bool isErrorEnabled ()=0
 Checks if this logger is enabled for the Error level.
 
virtual bool isFatalEnabled ()=0
 Checks if this logger is enabled for the Fatal level.
 

Detailed Description

Interface to be implemented to consume log from the library.


Instances of implemented classes are obtained by the library through the LoggerProvider instance set on LightstreamerClient#setLoggerProvider.

Member Function Documentation

◆ debug()

virtual void Lightstreamer::Logger::debug ( const std::string & line)
pure virtual

Receives log messages at Debug level.

Parameters
lineThe message to be logged.

◆ error()

virtual void Lightstreamer::Logger::error ( const std::string & line)
pure virtual

Receives log messages at Error level.

Parameters
lineThe message to be logged.

◆ fatal()

virtual void Lightstreamer::Logger::fatal ( const std::string & line)
pure virtual

Receives log messages at Fatal level.

Parameters
lineThe message to be logged.

◆ info()

virtual void Lightstreamer::Logger::info ( const std::string & line)
pure virtual

Receives log messages at Info level.

Parameters
lineThe message to be logged.

◆ isDebugEnabled()

virtual bool Lightstreamer::Logger::isDebugEnabled ( )
pure virtual

Checks if this logger is enabled for the Debug level.


The property should be true if this logger is enabled for Debug events, false otherwise.
This property is intended to lessen the computational cost of disabled log Debug statements. Note that even if the property is false, Debug log lines may be received anyway by the Debug methods.

Returns
true if the Debug logger is enabled

◆ isErrorEnabled()

virtual bool Lightstreamer::Logger::isErrorEnabled ( )
pure virtual

Checks if this logger is enabled for the Error level.


The property should be true if this logger is enabled for Error events, false otherwise.
This property is intended to lessen the computational cost of disabled log Error statements. Note that even if the property is false, Error log lines may be received anyway by the Error methods.

Returns
true if the Error logger is enabled

◆ isFatalEnabled()

virtual bool Lightstreamer::Logger::isFatalEnabled ( )
pure virtual

Checks if this logger is enabled for the Fatal level.


The property should be true if this logger is enabled for Fatal events, false otherwise.
This property is intended to lessen the computational cost of disabled log Fatal statements. Note that even if the property is false, Fatal log lines may be received anyway by the Fatal methods.

Returns
true if the Fatal logger is enabled

◆ isInfoEnabled()

virtual bool Lightstreamer::Logger::isInfoEnabled ( )
pure virtual

Checks if this logger is enabled for the Info level.


The property should be true if this logger is enabled for Info events, false otherwise.
This property is intended to lessen the computational cost of disabled log Info statements. Note that even if the property is false, Info log lines may be received anyway by the Info methods.

Returns
true if the Info logger is enabled

◆ isTraceEnabled()

virtual bool Lightstreamer::Logger::isTraceEnabled ( )
pure virtual

Checks if this logger is enabled for the Trace level.


The property should be true if this logger is enabled for Trace events, false otherwise.
This property is intended to lessen the computational cost of disabled log Trace statements. Note that even if the property is false, Trace log lines may be received anyway by the Trace methods.

Returns
true if the Trace logger is enabled

◆ isWarnEnabled()

virtual bool Lightstreamer::Logger::isWarnEnabled ( )
pure virtual

Checks if this logger is enabled for the Warn level.


The property should be true if this logger is enabled for Warn events, false otherwise.
This property is intended to lessen the computational cost of disabled log Warn statements. Note that even if the property is false, Warn log lines may be received anyway by the Warn methods.

Returns
true if the Warn logger is enabled

◆ trace()

virtual void Lightstreamer::Logger::trace ( const std::string & line)
pure virtual

Receives log messages at Trace level.

Parameters
lineThe message to be logged.

◆ warn()

virtual void Lightstreamer::Logger::warn ( const std::string & line)
pure virtual

Receives log messages at Warn level.

Parameters
lineThe message to be logged.

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