Clarisse 5.0 SP8 SDK
 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
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

Static Public Member Functions

static CoreLogHandlermain_handler (void)
- 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)
- Static Public Member Functions inherited from CoreBaseType
static const CoreClassInfoclass_info ()
 Get the type descriptor of this instance.

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  )


CoreLogHandler::~CoreLogHandler ( void  )


Member Function Documentation

void CoreLogHandler::add_indent ( int  indent)

Add a number of spaces to the current indentation.

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  )

Get the log context

int CoreLogHandler::get_log_level ( void  ) const

Get the current log level

bool CoreLogHandler::is_muted ( void  ) const

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  )

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)

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)

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