Equalizer 1.0

co::base::Log Class Reference

The logging class. More...

#include <log.h>

Inheritance diagram for co::base::Log:
Collaboration diagram for co::base::Log:

List of all members.

Public Member Functions

void indent ()
void exdent ()
void disableFlush ()
void enableFlush ()
void forceFlush ()
void disableHeader ()
void enableHeader ()
void setThreadName (const std::string &name)
const char * getThreadName () const

Static Public Member Functions

static COBASE_API Loginstance ()
 The per-thread logger.
static COBASE_API Loginstance (const char *file, const int line)
 The per-thread logger.
static COBASE_API void exit ()
 Exit the log instance for the current thread.
static std::string & getLogLevelString ()
 The string representation of the current log level.
static COBASE_API void setOutput (std::ostream &stream)
 Change the output stream.
static COBASE_API std::ostream & getOutput ()
 Get the current output stream.
static COBASE_API void setClock (Clock *clock)
 Set the reference clock.

Static Public Attributes

static COBASE_API int level
 The current log level.
static COBASE_API unsigned topics
 The current log topics.

Detailed Description

The logging class.

Definition at line 145 of file co/base/log.h.


Member Function Documentation

static COBASE_API void co::base::Log::exit ( ) [static]

Exit the log instance for the current thread.

static std::string& co::base::Log::getLogLevelString ( ) [static]

The string representation of the current log level.

static COBASE_API Log& co::base::Log::instance ( ) [static]

The per-thread logger.

static COBASE_API Log& co::base::Log::instance ( const char *  file,
const int  line 
) [static]

The per-thread logger.

static COBASE_API void co::base::Log::setClock ( Clock clock) [static]

Set the reference clock.

The clock will be used instantly by all log outputs. Use 0 to reset the clock to the default clock.

Parameters:
clockthe reference clock.
static COBASE_API void co::base::Log::setOutput ( std::ostream &  stream) [static]

Change the output stream.


Member Data Documentation

COBASE_API int co::base::Log::level [static]

The current log level.

Definition at line 161 of file co/base/log.h.

COBASE_API unsigned co::base::Log::topics [static]

The current log topics.

Definition at line 164 of file co/base/log.h.


The documentation for this class was generated from the following file:
Generated on Sun May 8 2011 19:11:09 for Equalizer 1.0 by  doxygen 1.7.3