Equalizer 1.0
|
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>
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. |
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 EQERROR |
(co::base::Log::level >= co::base::LOG_ERROR) && \ co::base::Log::instance( __FILE__, __LINE__ )
Output an error message to the per-thread Log stream.
Definition at line 235 of file co/base/log.h.
Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), co::base::RNG::get(), Tracker::init(), eqPly::Tracker::init(), osgScaleViewer::SceneReader::readImage(), osgScaleViewer::SceneReader::readModel(), osgScaleViewer::OSGScaleViewer::run(), eVolve::EVolve::run(), eqPly::EqPly::run(), Tracker::update(), and eqPly::Tracker::update().
#define EQINFO |
(co::base::Log::level >= co::base::LOG_INFO) && \ co::base::Log::instance( __FILE__, __LINE__ )
Output an informational message to the per-thread Log.
Definition at line 241 of file co/base/log.h.
Referenced by eqPly::InitData::applyInstanceData(), eVolve::EVolve::clientLoop(), eqPly::EqPly::clientLoop(), eVolve::Pipe::configInit(), osgScaleViewer::Config::init(), and eqPly::Config::init().
#define EQLOG | ( | topic | ) |
(co::base::Log::topics & (topic)) && \ co::base::Log::instance( __FILE__, __LINE__ )
Output a message pertaining to a topic to the per-thread Log stream.
Definition at line 257 of file co/base/log.h.
Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), eVolve::EVolve::run(), and eqPly::EqPly::run().
#define EQVERB |
(co::base::Log::level >= co::base::LOG_VERB) && \ co::base::Log::instance( __FILE__, __LINE__ )
Output a verbatim message to the per-thread Log stream.
Definition at line 249 of file co/base/log.h.
Referenced by eqPly::EqPly::run().
#define EQWARN |
(co::base::Log::level >= co::base::LOG_WARN) && \ co::base::Log::instance( __FILE__, __LINE__ )
Output a warning message to the per-thread Log stream.
Definition at line 238 of file co/base/log.h.
Referenced by eVolve::Pipe::configInit(), eqPly::Channel::frameAssemble(), osgScaleViewer::Config::init(), eqPly::Config::init(), osgScaleViewer::OSGScaleViewer::run(), eVolve::EVolve::run(), eqPly::EqPly::run(), eVolve::Pipe::selectWindowSystem(), eqPly::Pipe::selectWindowSystem(), eq::fabric::SubPixel::validate(), and eq::fabric::Pixel::validate().