MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LogLevel Class Reference

Public Types

enum  EventCategory {
  llInvalid = -1, llStartUp = CFG_LOGLEVEL_STARTUP - CFG_MIN_LOGLEVEL, llShutdown = CFG_LOGLEVEL_SHUTDOWN - CFG_MIN_LOGLEVEL, llStatistic = CFG_LOGLEVEL_STATISTICS - CFG_MIN_LOGLEVEL,
  llCheckpoint = CFG_LOGLEVEL_CHECKPOINT - CFG_MIN_LOGLEVEL, llNodeRestart = CFG_LOGLEVEL_NODERESTART - CFG_MIN_LOGLEVEL, llConnection = CFG_LOGLEVEL_CONNECTION - CFG_MIN_LOGLEVEL, llInfo = CFG_LOGLEVEL_INFO - CFG_MIN_LOGLEVEL,
  llWarning = CFG_LOGLEVEL_WARNING - CFG_MIN_LOGLEVEL, llError = CFG_LOGLEVEL_ERROR - CFG_MIN_LOGLEVEL, llCongestion = CFG_LOGLEVEL_CONGESTION - CFG_MIN_LOGLEVEL, llDebug = CFG_LOGLEVEL_DEBUG - CFG_MIN_LOGLEVEL,
  llBackup = CFG_LOGLEVEL_BACKUP - CFG_MIN_LOGLEVEL, llSchema = CFG_LOGLEVEL_SCHEMA - CFG_MIN_LOGLEVEL
}

Public Member Functions

 LogLevel ()
LogLeveloperator= (const LogLevel &)
 STATIC_CONST (LOGLEVEL_CATEGORIES=_LOGLEVEL_CATEGORIES)
void clear ()
int setLogLevel (EventCategory ec, Uint32 level=7)
Uint32 getLogLevel (EventCategory ec) const
LogLevelset_max (const LogLevel &ll)
bool operator== (const LogLevel &l) const
LogLeveloperator= (const struct EventSubscribeReq &req)

Friends

class Config

Detailed Description

Definition at line 27 of file LogLevel.hpp.

Constructor & Destructor Documentation

LogLevel::LogLevel ( )
inline

Constructor

Definition at line 104 of file LogLevel.hpp.

Member Function Documentation

Uint32 LogLevel::getLogLevel ( EventCategory  ec) const
inline

Get the loglevel (0-15) for a category

Definition at line 136 of file LogLevel.hpp.

Here is the caller graph for this function:

LogLevel & LogLevel::operator= ( const LogLevel org)
inline

Howto add a new event category:

  1. Add the new event category to EventCategory below
  2. Update #define _LOGLEVEL_CATEGORIES (found below) with the number of items in EventCategory
  3. Update LogLevelCategoryName in LogLevel.cpp
  4. Add the event in EventLogger Copy operator

Definition at line 110 of file LogLevel.hpp.

LogLevel & LogLevel::set_max ( const LogLevel ll)
inline

Set this= max(this, ll) per category

Definition at line 144 of file LogLevel.hpp.

int LogLevel::setLogLevel ( EventCategory  ec,
Uint32  level = 7 
)
inline

Note level is valid as 0-15

Definition at line 125 of file LogLevel.hpp.


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