Clarisse 4.0 SP5b SDK  4.0.0.0.5.1
 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
 
CoreString get_class_interface () const
 
const unsigned long & get_class_info_id () const
 
bool is_kindof (const CoreClassInfo &cinfo) const
 
virtual const CoreClassInfoget_class_info () const
 
bool operator== (const CoreBaseObject &obj) 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
 
bool operator== (const CoreBaseType &obj) const
 

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseObject
static const CoreClassInfoclass_info ()
 
static bool ___class_destructor__ (void *instance, const bool &is_array)
 
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  )

Constructor

CoreLogCtx::~CoreLogCtx ( void  )

Destructor

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

Returns
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