Equalizer  1.2.1
Classes | Namespaces | Defines | Enumerations | Functions
co/base/log.h File Reference

This file contains the logging classes for Equalizer. More...

#include <co/base/api.h>
#include <assert.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <time.h>
+ Include dependency graph for co/base/log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  co::base::LogBuffer
class  co::base::Log
 The logging class. More...

Namespaces

namespace  co
 Object-oriented network library.
namespace  co::base
 Base abstraction layer and common utility classes.

Defines

#define EQERROR
 Output an error message to the per-thread Log stream.
#define EQWARN
 Output a warning message to the per-thread Log stream.
#define EQINFO
 Output an informational message to the per-thread Log.
#define EQVERB
 Output a verbatim message to the per-thread Log stream.
#define EQLOG(topic)
 Output a message pertaining to a topic to the per-thread Log stream.

Enumerations

enum  co::base::LogLevel {
  co::base::LOG_ERROR = 1, co::base::LOG_WARN, co::base::LOG_INFO, co::base::LOG_VERB,
  LOG_ALL
}
 The logging levels. More...
enum  co::base::LogTopic { co::base::LOG_PLUGIN = 0x1, co::base::LOG_CUSTOM = 0x10, co::base::LOG_ANY = 0xffffu }
 The logging topics. More...

Functions

COBASE_API std::ostream & co::base::indent (std::ostream &os)
 Increases the indentation level of the Log stream, causing subsequent lines to be intended by four characters.
COBASE_API std::ostream & co::base::exdent (std::ostream &os)
 Decrease the indent of the Log stream.
COBASE_API std::ostream & co::base::disableFlush (std::ostream &os)
 Disable flushing of the Log stream.
COBASE_API std::ostream & co::base::enableFlush (std::ostream &os)
 Re-enable flushing of the Log stream.
COBASE_API std::ostream & co::base::forceFlush (std::ostream &os)
 Flush the Log stream regardless of the auto-flush state.
COBASE_API std::ostream & co::base::disableHeader (std::ostream &os)
 Disable printing of the Log header for subsequent lines.
COBASE_API std::ostream & co::base::enableHeader (std::ostream &os)
 Re-enable printing of the Log header.

Detailed Description

This file contains the logging classes for Equalizer.

The macros EQERROR, EQWARN, EQINFO and EQVERB output messages at their respective logging level, if the level is active. They use a per-thread co::base::Log instance, which is a std::ostream. EQVERB is always inactive in release builds.

Definition in file co/base/log.h.


Define Documentation

#define EQERROR
#define EQINFO
#define EQLOG (   topic)
Value:
(co::base::Log::topics & (topic))  &&  \
    co::base::Log::instance( __FILE__, __LINE__ )

Output a message pertaining to a topic to the per-thread Log stream.

Version:
1.0

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

Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), eVolve::EVolve::run(), and eqPly::EqPly::run().

#define EQVERB
Value:

Output a verbatim message to the per-thread Log stream.

Version:
1.0

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

Referenced by eqPly::EqPly::run().

#define EQWARN
Generated on Fri Jun 8 2012 15:44:33 for Equalizer 1.2.1 by  doxygen 1.8.0