19 #ifndef DISBALE_LOG_MACROS 20 #define LIBBGP_LOG(logger, level) if (logger->getLogLevel() >= level) 22 #define LIBBGP_LOG(logger, level) 51 void log(
LogLevel level,
const char* format_str, ...);
69 virtual void logImpl(
const char* str);
74 char out_buffer[4096];
LogLevel
Log levels for logger (BgpLogHandler)
virtual ~BgpLogHandler()
Destroy the Bgp Log Handler object.
The serializable base class.
void log(LogLevel level, const char *format_str,...)
Log a message. Consider using LIBBGP_LOG if logging the message needs a lot of computing power...
virtual void logImpl(const char *str)
Log implementation. By default, it writes to stderr. You may implement your own BgpLogHandler to writ...
void setLogLevel(LogLevel level)
Set the log level.
LogLevel getLogLevel() const
Get the log level.