eq::base::Log Class Reference

The logging class. More...

#include <log.h>

Inheritance diagram for eq::base::Log:

Inheritance graph
[legend]
Collaboration diagram for eq::base::Log:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void indent ()
void exdent ()
void disableFlush ()
void enableFlush ()
void forceFlush ()
void disableHeader ()
void enableHeader ()
void notifyPerThreadDelete ()

Static Public Member Functions

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

Static Public Attributes

static int level = getLogLevel()
 The current log level.
static unsigned topics = getLogTopics()
 The current log topics.


Detailed Description

The logging class.

For internal use only.

Definition at line 147 of file lib/base/log.h.


Member Function Documentation

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

The per-thread logger.

Definition at line 120 of file log.cpp.

References setLogInfo().

Here is the call graph for this function:

void eq::base::Log::exit (  )  [static]

Exit the log instance for the current thread.

Definition at line 134 of file log.cpp.

Referenced by setOutput().

Here is the caller graph for this function:

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

The string representation of the current log level.

Definition at line 99 of file log.cpp.

Referenced by eq::net::init().

Here is the caller graph for this function:

void eq::base::Log::setOutput ( std::ostream &  stream  )  [static]

Change the output stream.

Definition at line 141 of file log.cpp.

References exit().

Here is the call graph for this function:

std::ostream & eq::base::Log::getOutput (  )  [static]

Get the current output stream.

For internal use only.

Definition at line 155 of file log.cpp.

void eq::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:
clock the reference clock.

Definition at line 147 of file log.cpp.

Referenced by eq::Config::Config(), and eq::Config::~Config().

Here is the caller graph for this function:


Member Data Documentation

int eq::base::Log::level = getLogLevel() [static]

The current log level.

Definition at line 163 of file lib/base/log.h.

unsigned eq::base::Log::topics = getLogTopics() [static]

The current log topics.

Definition at line 166 of file lib/base/log.h.

Referenced by eq::net::init().


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:44 2009 for Equalizer 0.9 by  doxygen 1.5.8