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 | Static Public Member Functions | List of all members
CoreLogHandler Class Reference
Inheritance diagram for CoreLogHandler:
CoreBaseObject CoreBaseType

Public Member Functions

 CoreLogHandler (void)
 
 ~CoreLogHandler (void)
 
void log (int level, const CoreLogStream &stream)
 
CoreLogCtxget_log_ctx (void)
 
void set_logger (CoreLogger &logger)
 
void set_indent (int indent)
 
void add_indent (int indent)
 
int get_indent (void) const
 
void set_log_level (int level)
 
int get_log_level (void) const
 
void set_mute (bool mute)
 
bool is_muted () const
 
- 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
 

Static Public Member Functions

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

Detailed Description

Manage log output, in a thread-safe way. This is the top level log class which manages everything.

Constructor & Destructor Documentation

CoreLogHandler::CoreLogHandler ( void  )

Constructor

CoreLogHandler::~CoreLogHandler ( void  )

Destructor

Member Function Documentation

void CoreLogHandler::add_indent ( int  indent)

Add a number of spaces to the current indentation.

Parameters
indentNumber of spaces to add. If negative, will remove spaces.
int CoreLogHandler::get_indent ( void  ) const

Get the number of spaces used for indentation

CoreLogCtx & CoreLogHandler::get_log_ctx ( void  )
inline

Get the log context

int CoreLogHandler::get_log_level ( void  ) const
inline

Get the current log level

bool CoreLogHandler::is_muted ( void  ) const
inline

Check if the log system is currently muted or not.

void CoreLogHandler::log ( int  level,
const CoreLogStream message 
)

Log something at a given level (only if the current log level is greater or equal to the given level)

CoreLogHandler & CoreLogHandler::main_handler ( void  )
inlinestatic

Get the main log handler.

void CoreLogHandler::set_indent ( int  indent)

Set the number of spaces used to indent things

void CoreLogHandler::set_log_level ( int  level)
inline

Set the max log level. Any level greater than this log level won't be logged.

void CoreLogHandler::set_logger ( CoreLogger logger)

Set the current logger. This will remove all other loggers.

void CoreLogHandler::set_mute ( bool  mute)
inline

Totally mute the log system. This preserves the current log level.