pulsar-client-cpp
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
pulsar::Logger Class Referenceabstract

Public Types

enum  Level { LEVEL_DEBUG = 0 , LEVEL_INFO = 1 , LEVEL_WARN = 2 , LEVEL_ERROR = 3 }
 

Public Member Functions

virtual bool isEnabled (Level level)=0
 
virtual void log (Level level, int line, const std::string &message)=0
 

Member Function Documentation

◆ isEnabled()

virtual bool pulsar::Logger::isEnabled ( Level  level)
pure virtual

Check whether the log level is enabled

Parameters
levelthe Logger::Level
Returns
true if log is enabled

◆ log()

virtual void pulsar::Logger::log ( Level  level,
int  line,
const std::string &  message 
)
pure virtual

Log the message with related metadata

Parameters
levelthe Logger::Level
linethe line number of this log
messagethe message to log

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