This file contains the logging classes for Equalizer. More...
#include <eq/base/base.h>#include <eq/base/clock.h>#include <assert.h>#include <iomanip>#include <iostream>#include <sstream>#include <time.h>Go to the source code of this file.
Classes | |
| class | eq::base::LogBuffer |
| The string buffer used for logging. More... | |
| class | eq::base::Log |
| The logging class. More... | |
Namespaces | |
| namespace | eq |
The Equalizer client library. | |
| namespace | eq::base |
Equalizer base abstraction layer. | |
Defines | |
| #define | SUBDIR "" |
| #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 | eq::base::LogLevel { eq::base::LOG_ERROR = 1, eq::base::LOG_WARN, eq::base::LOG_INFO, eq::base::LOG_VERB, LOG_ALL } |
The logging levels. More... | |
| enum | eq::base::LogTopic { eq::base::LOG_PLUGIN = 0x1, eq::base::LOG_CUSTOM = 0x10, eq::base::LOG_ANY = 0xffffu } |
The logging topics. More... | |
Functions | |
| std::ostream & | eq::base::indent (std::ostream &os) |
| Increases the indentation level of the Log stream, causing subsequent lines to be intended by four characters. | |
| std::ostream & | eq::base::exdent (std::ostream &os) |
| Decrease the indent of the Log stream. | |
| std::ostream & | eq::base::disableFlush (std::ostream &os) |
| Disable flushing of the Log stream. | |
| std::ostream & | eq::base::enableFlush (std::ostream &os) |
| Re-enable flushing of the Log stream. | |
| std::ostream & | eq::base::forceFlush (std::ostream &os) |
| Flush the Log stream regardless of the auto-flush state. | |
| std::ostream & | eq::base::disableHeader (std::ostream &os) |
| Disable printing of the Log header for subsequent lines. | |
| std::ostream & | eq::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 base::Log instance, which is a std::ostream. EQVERB is always inactive in release builds.
Definition in file lib/base/log.h.
| #define EQERROR |
(eq::base::Log::level >= eq::base::LOG_ERROR) && \ eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output an error message to the per-thread Log stream.
Definition at line 234 of file lib/base/log.h.
Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), eq::base::abort(), eq::Compositor::assembleImageDB_GLSL(), eVolve::Channel::Channel(), eq::base::checkHeap(), eq::net::Node::deserialize(), eq::net::deserialize(), eq::GLXMessagePump::dispatchOne(), eq::server::exit(), eq::base::RNG::get(), Tracker::init(), eqPly::Tracker::init(), eq::server::init(), eq::net::init(), eq::util::FrameBufferObject::init(), eq::net::DataIStream::read(), osgScaleViewer::SceneReader::readImage(), osgScaleViewer::SceneReader::readModel(), eq::net::Connection::recvSync(), osgScaleViewer::OSGScaleViewer::run(), eVolve::EVolve::run(), eqPly::EqPly::run(), eq::net::ConnectionSet::select(), eq::net::Connection::send(), eq::base::TimedLock::TimedLock(), eq::net::Session::unmapObject(), Tracker::update(), eqPly::Tracker::update(), eq::ROITracker::updateDelay(), eq::base::Condition::~Condition(), eq::base::Lock::~Lock(), and eq::base::Thread::~Thread().
| #define EQINFO |
(eq::base::Log::level >= eq::base::LOG_INFO) && \ eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output an informational message to the per-thread Log.
Definition at line 240 of file lib/base/log.h.
Referenced by eq::net::RSPConnection::acceptSync(), eVolve::InitData::applyInstanceData(), eqPly::InitData::applyInstanceData(), eq::Compositor::assembleFrame(), eq::server::DFREqualizer::attach(), eq::net::Barrier::Barrier(), eq::GLXWindow::chooseXVisualInfo(), eVolve::EVolve::clientLoop(), eqPly::EqPly::clientLoop(), eq::WGLWindow::configExit(), eq::GLXWindow::configExit(), eq::AGLWindow::configExit(), eq::AGLPipe::configExit(), eq::WGLPipe::configInit(), eVolve::Pipe::configInit(), eq::CUDAContext::configInit(), eq::AGLPipe::configInit(), eq::GLXWindow::configInitGLXPBuffer(), eq::GLXWindow::configInitGLXWindow(), eq::net::SocketConnection::connect(), eq::AGLWindow::createAGLContext(), eq::Frame::Frame(), eq::net::Node::getMulticast(), eq::WGLWindow::joinNVSwapBarrier(), eq::GLXWindow::joinNVSwapBarrier(), eq::net::SocketConnection::listen(), eq::net::RSPConnection::listen(), eq::net::FDConnection::readSync(), eq::net::Connection::recvSync(), eq::net::Connection::send(), eq::AGLWindow::setAGLPBuffer(), eq::AGLWindow::setCarbonWindow(), eq::fabric::Pipe< N, P, W, V >::setPixelViewport(), eq::Client::~Client(), eq::Frame::~Frame(), eq::FrameData::~FrameData(), and eq::net::Session::~Session().
| #define EQLOG | ( | topic ) |
(eq::base::Log::topics & (topic)) && \ eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output a message pertaining to a topic to the per-thread Log stream.
Definition at line 256 of file lib/base/log.h.
Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), eq::server::Window::activate(), eq::server::Pipe::activate(), eq::server::Node::activate(), eq::net::VersionedSlaveCM::addInstanceDatas(), eq::net::StaticSlaveCM::addInstanceDatas(), eq::net::UnbufferedMasterCM::addSlave(), eq::net::VersionedSlaveCM::applyMapData(), eq::net::StaticSlaveCM::applyMapData(), eq::Compositor::assembleImageDB_FF(), eq::Compositor::assembleImageDB_GLSL(), eq::fabric::Canvas< CFG, C, S, L >::Canvas(), eq::fabric::Channel< W, C >::Channel(), eq::server::Window::configExit(), eq::server::Pipe::configExit(), eq::server::Node::configExit(), eq::server::Window::configInit(), eq::server::Pipe::configInit(), eq::server::Node::configInit(), eq::server::Node::connect(), eq::server::Window::deactivate(), eq::server::Pipe::deactivate(), eq::server::Node::deactivate(), eq::net::Session::deregisterObject(), eq::net::Barrier::enter(), eq::server::Node::flushFrames(), eq::base::Plugin::initChildren(), eq::fabric::Layout< C, L, V >::Layout(), eq::net::Session::mapObjectNB(), eq::net::Session::mapObjectSync(), eq::server::FramerateEqualizer::notifyUpdatePre(), eq::fabric::Observer< C, O >::Observer(), eq::net::Session::registerObject(), eq::net::RSPConnection::RSPConnection(), eVolve::EVolve::run(), eqPly::EqPly::run(), eq::fabric::Segment< C, S, CH >::Segment(), eq::fabric::Server< CL, S, CFG, NF, N >::Server(), eq::net::VersionedSlaveCM::sync(), eq::net::MasterCM::sync(), eq::net::Session::unmapObject(), eq::server::Pipe::update(), eq::server::Node::update(), eq::server::Window::updateDraw(), eq::server::Window::updatePost(), eq::server::CompoundUpdateInputVisitor::visit(), eq::server::ChannelUpdateVisitor::visitLeaf(), eq::server::ChannelUpdateVisitor::visitPre(), eq::net::RSPConnection::write(), eq::fabric::Canvas< CFG, C, S, L >::~Canvas(), eq::fabric::Layout< C, L, V >::~Layout(), eq::fabric::Observer< C, O >::~Observer(), eq::fabric::Segment< C, S, CH >::~Segment(), and eq::fabric::Server< CL, S, CFG, NF, N >::~Server().
| #define EQVERB |
(eq::base::Log::level >= eq::base::LOG_VERB) && \ eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output a verbatim message to the per-thread Log stream.
Definition at line 248 of file lib/base/log.h.
Referenced by eq::net::SocketConnection::acceptSync(), eq::Channel::applyHeadTransform(), eq::Compositor::assembleFramesCPU(), eq::Compositor::assembleFramesUnsorted(), eq::net::PipeConnection::connect(), eq::net::Session::dispatchCommand(), eq::net::DataOStream::enable(), eq::net::Session::invokeCommand(), eq::Compositor::mergeFramesCPU(), eq::net::Node::Node(), eq::net::Connection::recvSync(), eqPly::EqPly::run(), eq::base::searchDirectory(), eq::net::Session::Session(), eq::server::Compound::setWall(), eq::net::SocketConnection::SocketConnection(), eq::server::Node::update(), eq::server::CompoundUpdateInputVisitor::visit(), eq::net::Node::~Node(), and eq::net::Session::~Session().
| #define EQWARN |
(eq::base::Log::level >= eq::base::LOG_WARN) && \ eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output a warning message to the per-thread Log stream.
Definition at line 237 of file lib/base/log.h.
Referenced by eq::net::SocketConnection::acceptSync(), eq::AGLEventHandler::AGLEventHandler(), eq::Compositor::assembleImage(), eq::Compositor::assembleImageDB_GLSL(), eq::WGLWindow::chooseWGLPixelFormat(), eq::net::SocketConnection::close(), eq::WGLWindow::configInit(), eVolve::Pipe::configInit(), eq::CUDAContext::configInit(), eq::AGLWindow::configInitAGLDrawable(), eq::AGLWindow::configInitAGLFullscreen(), eq::AGLWindow::configInitAGLPBuffer(), eq::AGLWindow::configInitAGLWindow(), eq::GLXWindow::configInitGLXDrawable(), eq::WGLWindow::configInitWGLDrawable(), eq::WGLWindow::configInitWGLFBO(), eq::WGLWindow::configInitWGLPBuffer(), eq::WGLWindow::configInitWGLWindow(), eq::net::SocketConnection::connect(), eq::server::Node::connect(), eq::net::Connection::create(), eq::AGLWindow::createAGLContext(), eq::WGLPipe::createWGLAffinityDC(), eq::WGLWindow::createWGLContext(), eq::WGLPipe::createWGLDisplayDC(), eq::debugGLError(), eq::net::Session::deregisterObject(), eq::net::deserialize(), eq::Client::disconnectServer(), eq::GLXMessagePump::dispatchOne(), eq::net::CommandQueue::flush(), eqPly::Channel::frameAssemble(), eq::net::ConnectionDescription::fromString(), eq::base::Plugin::init(), eq::util::BitmapFont< OMT >::init(), eq::net::Session::invokeCommand(), eq::WGLWindow::joinNVSwapBarrier(), eq::GLXWindow::joinNVSwapBarrier(), eq::AGLWindow::joinNVSwapBarrier(), eq::server::Node::launch(), eq::net::SocketConnection::listen(), eq::net::RSPConnection::listen(), eq::net::LocalNode::listen(), eq::Compositor::mergeFramesCPU(), eq::base::DSO::open(), eq::WGLMessagePump::postWakeup(), eq::net::FDConnection::readSync(), eq::Node::releaseFrame(), osgScaleViewer::OSGScaleViewer::run(), eVolve::EVolve::run(), eqPly::EqPly::run(), eVolve::Pipe::selectWindowSystem(), eqPly::Pipe::selectWindowSystem(), eq::net::Connection::send(), eq::FrameData::setQuality(), eq::server::Window::syncConfigInit(), eq::server::Pipe::syncConfigInit(), eq::server::Node::syncConfigInit(), eq::server::Node::syncLaunch(), eq::fabric::SubPixel::validate(), eq::fabric::Pixel::validate(), eq::net::FDConnection::write(), eq::AGLMessagePump::~AGLMessagePump(), eq::net::Session::~Session(), and eq::util::Texture::~Texture().
1.0-alpha by
1.7.2