Classes | Namespaces | Defines | Enumerations | Functions

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 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.

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. EQVERB is always inactive in release builds.

Definition in file lib/base/log.h.


Define Documentation

#define EQERROR
#define EQINFO
#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.

Version:
1.0

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
#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.

Version:
1.0

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().

Generated on Wed Dec 1 2010 15:34:24 for EqualizerInternal 1.0-alpha by  1.7.2