Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
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 |
CoreLogger * | get_logger (unsigned int idx) const |
void | log (int level, const CoreString &message) |
![]() | |
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 CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Additional Inherited Members | |
![]() | |
static const CoreClassInfo & | class_info () |
template<class T > | |
static T * | cast (CoreBaseObject *object) |
template<class T > | |
static const T * | cast (const CoreBaseObject *object) |
This class just stores a list of loggers, and dispatch log messages to them.
CoreLogCtx::CoreLogCtx | ( | void | ) |
Constructor
CoreLogCtx::~CoreLogCtx | ( | void | ) |
Destructor
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
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