Clarisse 5.0 SP8 SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
CoreLogCtx Class Reference
Inheritance diagram for CoreLogCtx:
CoreBaseObject CoreBaseType

Public Member Functions

 CoreLogCtx (void)
 ~CoreLogCtx (void)
void add_logger (CoreLogger &logger)
void remove_logger (CoreLogger &logger)
void remove_logger (unsigned int idx)
void remove_all_loggers (void)
unsigned int get_logger_count (void) const
CoreLoggerget_logger (unsigned int idx) const
void log (int level, const CoreString &message)
- Public Member Functions inherited from CoreBaseObject
bool is_kindof (const CoreBaseObject &object) const
virtual size_t get_memory_size () const
CoreString get_class_info_name () const
const unsigned long & get_class_info_id () const
virtual bool is_kindof (const CoreClassInfo &cinfo) const
virtual const CoreClassInfoget_class_info () const
template<class T >
T * cast ()
template<class T >
const T * cast () const
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseObject
static const CoreClassInfoclass_info ()
template<class T >
static T * cast (CoreBaseObject *object)
template<class T >
static const T * cast (const CoreBaseObject *object)

Detailed Description

This class just stores a list of loggers, and dispatch log messages to them.

Constructor & Destructor Documentation

CoreLogCtx::CoreLogCtx ( void  )


CoreLogCtx::~CoreLogCtx ( void  )


Member Function Documentation

void CoreLogCtx::add_logger ( CoreLogger logger)

Add a logger to the context

CoreLogger * CoreLogCtx::get_logger ( unsigned int  idx) const

Get a logger by index

The logger if the index was valid, nullptr otherwise
unsigned int CoreLogCtx::get_logger_count ( void  ) const

Get the current number of loggers

void CoreLogCtx::log ( int  level,
const CoreString message 

Log something to all logger of this context

void CoreLogCtx::remove_all_loggers ( void  )

Remove all loggers from the context

void CoreLogCtx::remove_logger ( CoreLogger logger)

Remove a logger from the context

void CoreLogCtx::remove_logger ( unsigned int  idx)

Remove a logger by index