18 #ifndef _LOG_LEVEL_HPP
19 #define _LOG_LEVEL_HPP
21 #include <ndb_global.h>
22 #include <mgmapi_config_parameters.h>
52 llStartUp = CFG_LOGLEVEL_STARTUP - CFG_MIN_LOGLEVEL,
53 llShutdown = CFG_LOGLEVEL_SHUTDOWN - CFG_MIN_LOGLEVEL,
54 llStatistic = CFG_LOGLEVEL_STATISTICS - CFG_MIN_LOGLEVEL,
55 llCheckpoint = CFG_LOGLEVEL_CHECKPOINT - CFG_MIN_LOGLEVEL,
56 llNodeRestart = CFG_LOGLEVEL_NODERESTART - CFG_MIN_LOGLEVEL,
57 llConnection = CFG_LOGLEVEL_CONNECTION - CFG_MIN_LOGLEVEL,
58 llInfo = CFG_LOGLEVEL_INFO - CFG_MIN_LOGLEVEL,
59 llWarning = CFG_LOGLEVEL_WARNING - CFG_MIN_LOGLEVEL,
60 llError = CFG_LOGLEVEL_ERROR - CFG_MIN_LOGLEVEL,
61 llCongestion = CFG_LOGLEVEL_CONGESTION - CFG_MIN_LOGLEVEL,
62 llDebug = CFG_LOGLEVEL_DEBUG - CFG_MIN_LOGLEVEL
63 ,llBackup = CFG_LOGLEVEL_BACKUP - CFG_MIN_LOGLEVEL
64 ,llSchema = CFG_LOGLEVEL_SCHEMA - CFG_MIN_LOGLEVEL
70 #define _LOGLEVEL_CATEGORIES (CFG_MAX_LOGLEVEL - CFG_MIN_LOGLEVEL + 1)
71 STATIC_CONST( LOGLEVEL_CATEGORIES = _LOGLEVEL_CATEGORIES );
90 bool operator==(
const LogLevel& l)
const {
91 return memcmp(
this, &l,
sizeof(*
this)) == 0;
100 Uint8 logLevelData[LOGLEVEL_CATEGORIES];
111 memcpy(logLevelData, org.logLevelData,
sizeof(logLevelData));
118 for(Uint32
i = 0;
i<LOGLEVEL_CATEGORIES;
i++){
126 if (ec >= 0 && (Uint32) ec < LOGLEVEL_CATEGORIES)
128 logLevelData[ec] = (Uint8)level;
137 assert(ec >= 0 && (Uint32) ec < LOGLEVEL_CATEGORIES);
139 return (Uint32)logLevelData[ec];
145 for(Uint32
i = 0;
i<LOGLEVEL_CATEGORIES;
i++){
146 if(logLevelData[
i] < org.logLevelData[
i])
147 logLevelData[
i] = org.logLevelData[
i];
152 #include "signaldata/EventSubscribeReq.hpp"
160 logLevelData[(req.theData[
i] >> 16)] = req.theData[
i] & 0xFFFF;