lib/base/log.h File Reference

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>

Include dependency graph for lib/base/log.h:

This graph shows which files directly or indirectly include this file:

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 utility 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 stream.
#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_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 for subsequent lines.


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 base::Log instance, which is a std::ostream.

Definition in file lib/base/log.h.


Define Documentation

#define EQERROR

#define EQWARN

Value:

(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 255 of file lib/base/log.h.

Referenced by eq::net::FullSlaveCM::_unpackOneVersion(), eq::net::SocketConnection::acceptSync(), eq::server::Config::addCanvas(), eq::AGLEventHandler::AGLEventHandler(), eq::Compositor::assembleImage(), eq::Compositor::assembleImageDB_GLSL(), eq::Server::chooseConfig(), eq::WGLWindow::chooseWGLPixelFormat(), eq::net::SocketConnection::close(), eq::Image::compressPixelData(), eq::Pipe::configExit(), eq::WGLWindow::configInit(), eq::AGLWindow::configInitAGLDrawable(), eq::AGLWindow::configInitAGLFullscreen(), eq::GLXWindow::configInitGLXDrawable(), eq::Window::configInitOSWindow(), eq::WGLWindow::configInitWGLDrawable(), eq::net::SocketConnection::connect(), eq::Client::connectServer(), eq::net::Connection::create(), eq::WGLWindow::createWGLContext(), eq::debugGLError(), eq::net::Node::deserialize(), eq::Client::disconnectServer(), eq::AGLMessagePump::dispatchAll(), eq::AGLMessagePump::dispatchOne(), eq::ROIFinder::findRegions(), eq::net::CommandQueue::flush(), eq::net::ConnectionDescription::fromString(), eq::net::Session::genIDs(), eq::Image::getInternalTextureFormat(), eq::Image::getNumChannels(), eq::FrameBufferObject::init(), eqPly::Config::init(), eq::Compressor::init(), eq::net::Node::initLocal(), eq::net::Session::invokeCommand(), eq::base::Thread::join(), eq::WGLWindow::joinNVSwapBarrier(), eq::GLXWindow::joinNVSwapBarrier(), eq::AGLWindow::joinNVSwapBarrier(), eq::net::SocketConnection::listen(), eq::net::Node::listen(), eq::base::MemoryMap::map(), eq::net::Session::mapObjectNB(), eq::Compositor::mergeFramesCPU(), eq::base::DSO::open(), eq::base::Thread::pinCurrentThread(), eq::WGLMessagePump::postWakeup(), eq::GLXMessagePump::postWakeup(), eq::AGLMessagePump::postWakeup(), eq::Window::processEvent(), eq::Channel::processEvent(), eq::net::FDConnection::readSync(), eq::base::Launcher::run(), eq::net::Node::runClient(), eqPly::Pipe::selectWindowSystem(), eq::net::Connection::send(), eq::Config::setWindowSystem(), eq::Client::setWindowSystem(), eq::base::Thread::start(), eq::FrameData::startReadback(), eq::FrameData::transmit(), eq::base::MemoryMap::unmap(), eq::Server::useConfig(), eq::WGLEventHandler::WGLEventHandler(), eq::net::FDConnection::write(), and eq::net::Session::~Session().

#define EQINFO

Value:

(eq::base::Log::level >= eq::base::LOG_INFO)  &&    \
    eq::base::Log::instance( SUBDIR, __FILE__, __LINE__ )
Output an informational message to the per-thread Log stream.

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

Referenced by eq::EventHandler::_getRenderContext(), eq::AGLEventHandler::AGLEventHandler(), eq::net::CommandCache::alloc(), eq::Image::allocCompressor(), eq::Compositor::assembleFrame(), eq::net::Object::attachToSession(), eq::net::Barrier::Barrier(), eq::net::Object::becomeMaster(), eq::base::Thread::cancel(), eq::Channel::Channel(), eq::GLXWindow::chooseXVisualInfo(), eq::GLXEventHandler::clearEventSet(), eq::Client::Client(), eqPly::EqPly::clientLoop(), eq::Client::clientLoop(), eq::server::Compound::Compound(), eq::WGLWindow::configExit(), eq::GLXWindow::configExit(), eq::GLXPipe::configExit(), eq::AGLWindow::configExit(), eq::AGLPipe::configExit(), eq::WGLPipe::configInit(), eq::Pipe::configInit(), eq::GLXPipe::configInit(), eq::AGLPipe::configInit(), eq::GLXWindow::configInitGLXPBuffer(), eq::GLXWindow::configInitGLXWindow(), eq::Window::configInitOSWindow(), eq::net::Node::connect(), eq::Client::connectServer(), eq::AGLWindow::createAGLContext(), eq::net::Node::deserialize(), eq::base::Thread::exit(), eq::Image::findCompressors(), eq::Frame::Frame(), eq::net::init(), eq::init(), eqPly::Config::init(), eq::net::Node::initConnect(), eq::net::Node::initLocal(), eq::WGLWindow::joinNVSwapBarrier(), eq::net::SocketConnection::listen(), eq::net::Node::listen(), eq::net::Node::Node(), eq::Node::Node(), eq::server::Window::notifyViewportChanged(), eq::server::Channel::notifyViewportChanged(), eq::base::Thread::pinCurrentThread(), eq::Pipe::Pipe(), eq::net::FDConnection::readSync(), eq::net::Connection::recvSync(), eq::base::Thread::removeAllListeners(), eq::server::Server::run(), eq::base::Launcher::run(), eq::net::Node::runClient(), eq::server::Segment::Segment(), eq::server::Server::Server(), eq::Server::Server(), eq::net::Session::Session(), eq::AGLWindow::setAGLPBuffer(), eq::AGLWindow::setCarbonWindow(), eq::server::Pipe::setPixelViewport(), eq::Config::setWindowSystem(), eq::Client::setWindowSystem(), eq::net::Node::stopListening(), eq::Window::Window(), eq::server::Channel::~Channel(), eq::Channel::~Channel(), eq::Client::~Client(), eq::Config::~Config(), eq::net::Node::~Node(), eq::Node::~Node(), eq::server::Segment::~Segment(), eq::Server::~Server(), and eq::net::Session::~Session().

#define EQVERB

#define EQLOG ( topic   ) 

Value:

(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 265 of file lib/base/log.h.

Referenced by eVolve::RawVolumeModel::_createVolumeTexture(), eq::net::FullSlaveCM::_unpackOneVersion(), eq::server::Window::activate(), eq::server::Pipe::activate(), eq::server::Node::activate(), eq::server::Channel::activate(), eq::server::Config::addCanvas(), eq::server::Canvas::addSegment(), eq::net::UnbufferedMasterCM::addSlave(), eq::net::FullMasterCM::addSlave(), eq::net::DeltaMasterCM::addSlave(), eq::FrameData::applyInstanceData(), eq::net::StaticSlaveCM::applyMapData(), eq::net::FullSlaveCM::applyMapData(), eq::Compositor::assembleImageDB_FF(), eq::Compositor::assembleImageDB_GLSL(), eq::server::Window::deactivate(), eq::server::Pipe::deactivate(), eq::server::Node::deactivate(), eq::server::Channel::deactivate(), eq::net::Session::deregisterObject(), eq::net::Barrier::enter(), eq::ROIFinder::findRegions(), eq::Config::finishAllFrames(), eq::Config::finishFrame(), eq::net::Session::getIDMaster(), eq::Config::handleEvent(), eq::net::Session::mapObjectNB(), eq::net::Session::mapObjectSync(), eq::server::LoadEqualizer::notifyLoadData(), eq::server::DFREqualizer::notifyLoadData(), eq::server::Config::notifyNodeFrameFinished(), eq::server::LoadEqualizer::notifyUpdatePre(), eq::server::FramerateEqualizer::notifyUpdatePre(), eq::net::Session::registerObject(), eq::Pipe::releaseFrame(), eq::Pipe::releaseFrameLocal(), eq::Node::releaseFrameLocal(), eqPly::EqPly::run(), eq::net::ObjectInstanceDataOStream::sendBuffer(), eq::net::ObjectDeltaDataOStream::sendBuffer(), eq::Config::sendEvent(), eq::net::ObjectInstanceDataOStream::sendFooter(), eq::net::ObjectDeltaDataOStream::sendFooter(), eq::Pipe::startFrame(), eq::Config::startFrame(), eq::Image::startReadback(), eq::net::FullSlaveCM::sync(), eq::net::Session::unmapObject(), eq::server::Pipe::update(), eq::server::Node::update(), eq::server::Channel::update(), eq::server::Window::updateDraw(), eq::server::Compound::updateFrustum(), eq::server::Window::updatePost(), eq::server::CompoundUpdateInputVisitor::visit(), eq::server::CompoundInitVisitor::visit(), eq::server::ChannelUpdateVisitor::visitLeaf(), and eq::server::ChannelUpdateVisitor::visitPre().

Generated on Mon Aug 10 18:58:42 2009 for Equalizer 0.9 by  doxygen 1.5.8