Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
Logger.h
1#ifndef INCLUDED_Lightstreamer_Logger
2#define INCLUDED_Lightstreamer_Logger
3
4#include <string>
5
6namespace Lightstreamer {
7
12class Logger {
13public:
14 virtual ~Logger() {};
20 virtual void error(const std::string& line) = 0;
26 virtual void warn(const std::string& line) = 0;
32 virtual void info(const std::string& line) = 0;
38 virtual void debug(const std::string& line) = 0;
44 virtual void trace(const std::string& line) = 0;
50 virtual void fatal(const std::string& line) = 0;
58 virtual bool isTraceEnabled() = 0;
66 virtual bool isDebugEnabled() = 0;
74 virtual bool isInfoEnabled() = 0;
82 virtual bool isWarnEnabled() = 0;
90 virtual bool isErrorEnabled() = 0;
98 virtual bool isFatalEnabled() = 0;
99};
100
101} // namespace Lightstreamer
102
103#endif // INCLUDED_Lightstreamer_Logger
Interface to be implemented to consume log from the library.
Definition Logger.h:12
virtual bool isErrorEnabled()=0
Checks if this logger is enabled for the Error level.
virtual void error(const std::string &line)=0
Receives log messages at Error level.
virtual void debug(const std::string &line)=0
Receives log messages at Debug level.
virtual bool isDebugEnabled()=0
Checks if this logger is enabled for the Debug level.
virtual bool isFatalEnabled()=0
Checks if this logger is enabled for the Fatal level.
virtual bool isTraceEnabled()=0
Checks if this logger is enabled for the Trace level.
virtual bool isInfoEnabled()=0
Checks if this logger is enabled for the Info level.
virtual void info(const std::string &line)=0
Receives log messages at Info level.
virtual void fatal(const std::string &line)=0
Receives log messages at Fatal level.
virtual void warn(const std::string &line)=0
Receives log messages at Warn level.
virtual void trace(const std::string &line)=0
Receives log messages at Trace level.
virtual bool isWarnEnabled()=0
Checks if this logger is enabled for the Warn level.