Equalizer
1.2.1
|
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 228 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(), eVolve::EVolve::run(), osgScaleViewer::OSGScaleViewer::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 234 of file co/base/log.h.
Referenced by eVolve::EVolve::clientLoop(), eqPly::EqPly::clientLoop(), eqAsync::Pipe::configExit(), eVolve::Pipe::configInit(), eqAsync::Pipe::frameStart(), osgScaleViewer::Config::init(), eqPly::Config::init(), and eqAsync::AsyncFetcher::run().
#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 250 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 242 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 231 of file co/base/log.h.
Referenced by eVolve::Pipe::configInit(), eVolve::Channel::frameAssemble(), eqPly::Channel::frameAssemble(), eq::fabric::init(), osgScaleViewer::Config::init(), eq::init(), eqPly::Config::init(), eVolve::EVolve::run(), osgScaleViewer::OSGScaleViewer::run(), eqAsync::AsyncFetcher::run(), eqPly::EqPly::run(), eq::fabric::SubPixel::validate(), and eq::fabric::Pixel::validate().