Apache log4cxx  Version 0.12.0
level.h File Reference
#include <log4cxx/logstring.h>
#include <limits.h>
#include <log4cxx/helpers/object.h>

Go to the source code of this file.

Classes

class  log4cxx::Level
 Defines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFO, DEBUG and ALL. More...
 
class  log4cxx::Level::LevelClass
 

Namespaces

 log4cxx
 

Macros

#define DECLARE_LOG4CXX_LEVEL(level)
 
#define IMPLEMENT_LOG4CXX_LEVEL(level)   IMPLEMENT_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(level, Class##level)
 

Macro Definition Documentation

◆ DECLARE_LOG4CXX_LEVEL

#define DECLARE_LOG4CXX_LEVEL (   level)
Value:
public:\
class Class##level : public Level::LevelClass\
{\
public:\
Class##level() : Level::LevelClass() {}\
virtual LogString getName() const { return LOG4CXX_STR(#level); } \
virtual LevelPtr toLevel(const LogString& sArg) const\
{ return level::toLevelLS(sArg); }\
virtual LevelPtr toLevel(int val) const\
{ return level::toLevel(val); }\
};\
DECLARE_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(level, Class##level)
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:27
std::basic_string< logchar > LogString
Definition: logstring.h:66

◆ IMPLEMENT_LOG4CXX_LEVEL

#define IMPLEMENT_LOG4CXX_LEVEL (   level)    IMPLEMENT_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(level, Class##level)