21 #include <ndb_global.h>
22 #include <BaseString.hpp>
25 #define MAX_LOG_MESSAGE_SIZE 1024
109 LL_CRITICAL, LL_ALERT, LL_ALL};
244 virtual void alert(
const char* pMsg, ...) const
245 ATTRIBUTE_FORMAT(printf, 2, 3);
253 virtual void critical(
const char* pMsg, ...) const
254 ATTRIBUTE_FORMAT(printf, 2, 3);
262 virtual void error(
const char* pMsg, ...) const
263 ATTRIBUTE_FORMAT(printf, 2, 3);
271 virtual void warning(
const char* pMsg, ...) const
272 ATTRIBUTE_FORMAT(printf, 2, 3);
280 virtual void info(
const char* pMsg, ...) const
281 ATTRIBUTE_FORMAT(printf, 2, 3);
289 virtual void debug(
const char* pMsg, ...) const
290 ATTRIBUTE_FORMAT(printf, 2, 3);
296 virtual void setRepeatFrequency(
unsigned val);
302 void log(
LoggerLevel logLevel,
const char*
msg, va_list ap)
const;
308 bool operator == (
const Logger&);
310 STATIC_CONST( MAX_LOG_LEVELS = 8 );
312 bool m_logLevels[MAX_LOG_LEVELS];
315 const char* m_pCategory;
318 NdbMutex *m_handler_mutex;