Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/Utilities/Includes/Trace.hh File Reference

#include "Singleton.hh"
#include <sstream>
#include "TimeBasics.hh"
#include "ThreadTools.hh"

Go to the source code of this file.

Namespaces

namespace  IDEA

Defines

#define TRACE_LOCKING_ON
 Indicates if we do locking on trace invocation.

#define LOCK_OUTPUT   IDEA::Guard< IDEA::RecursiveThreadMutex > guard( IDEA::Trace::instance()->getMutex(), "TraceLock");
 Creates a guard the mutex of the global unique Trace instance.

#define IDEA_TRACE(msg)
 A macro to stream a message msg to output stream stream with a timestamp. Will lock a mutex to make it thread safe.

#define IDEA_TRACE_NO_TIME_STAMP(msg)
 A macro to stream a message msg to output stream stream without a timestamp. Will lock a mutex to make it thread safe.

#define DEBUG_TRACE_ON   IDEA::Trace::instance()->setOutputLevel( IDEA::Trace::DEBUG );
 Turns the output level to DEBUG.

#define HIGH_TRACE_ON   IDEA::Trace::instance()->setOutputLevel( IDEA::Trace::HIGH );
 Turns the output level to HIGH.

#define MEDIUM_TRACE_ON   IDEA::Trace::instance()->setOutputLevel( IDEA::Trace::MEDIUM );
 Turns the output level to MEDIUM.

#define LOW_TRACE_ON   IDEA::Trace::instance()->setOutputLevel( IDEA::Trace::LOW );
 Turns the output level to LOW.

#define DEBUG_TRACE(msg)   if( IDEA::Trace::instance()->isOutputLevelDebug() ) IDEA_TRACE( msg );
 Will stream msg to the Trace::getStream if output level is DEBUG.

#define HIGH_TRACE(msg)   if( IDEA::Trace::instance()->isOutputLevelHigh() || IDEA::Trace::instance()->isOutputLevelDebug() ) IDEA_TRACE( msg );
 Will stream msg to the Trace::getStream if output level is at least HIGH.

#define MEDIUM_TRACE(msg)   if( !IDEA::Trace::instance()->isOutputLevelLow() ) IDEA_TRACE( msg );
 Will stream msg to the Trace::getStream if output level is at least MEDIUM.

#define LOW_TRACE(msg)   IDEA_TRACE( msg )
 Will stream msg to the Trace::getStream if output level is at least LOW.

#define DEBUG_TRACE_NO_TIME_STAMP(msg)   if( IDEA::Trace::instance()->isOutputLevelDebug() ) IDEA_TRACE_NO_TIME_STAMP( msg );
 Will stream msg to the Trace::getStream without a timestamp if output level is DEBUG.

#define HIGH_TRACE_NO_TIME_STAMP(msg)   if( IDEA::Trace::instance()->isOutputLevelHigh() || IDEA::Trace::instance()->isOutputLevelDebug() ) IDEA_TRACE_NO_TIME_STAMP( msg );
 Will stream msg to the Trace::getStream without a timestamp if output level is at least HIGH.

#define MEDIUM_TRACE_NO_TIME_STAMP(msg)   if( !IDEA::Trace::instance()->isOutputLevelLow() ) IDEA_TRACE_NO_TIME_STAMP( msg );
 Will stream msg to the Trace::getStream without a timestamp if output level is at least MEDIUM.

#define LOW_TRACE_NO_TIME_STAMP(msg)   IDEA_TRACE_NO_TIME_STAMP( msg )
 Will stream msg to the Trace::getStream without a timestamp if output level is at least LOW.

#define DET_TRACE(msg)   MEDIUM_TRACE( msg )
 Will stream msg to the Trace::getStream if output level is at least MEDIUM.

#define DET_TRACE_NO_TIME_STAMP(msg)   MEDIUM_TRACE_NO_TIME_STAMP( msg )
 Will stream msg to the Trace::getStream without a timestamp if output level is at least MEDIUM.

#define trace(msg)   LOW_TRACE( msg )
 Will stream msg to the Trace::getStream if output level is at least LOW.

#define trace_no_time_stamp(msg)   LOW_TRACE_NO_TIME_STAMP( msg )
 Will stream msg to the Trace::getStream eithout a timestamp if output level is at least LOW.


Define Documentation

#define TRACE_LOCKING_ON
 

Indicates if we do locking on trace invocation.


Contact information
© IDEA
Generated on Fri Feb 3 17:09:43 2006 for IDEA.