18 #define KERNEL_MSGSTREAM_CPP    46   m_inactCounter = svc ? Gaudi::Cast<IInactiveMessageCounter>( svc ) : 0;
    56   m_inactCounter = svc ? Gaudi::Cast<IInactiveMessageCounter>( svc ) : 0;
   122   const int buffsize = 2048;
   123   static char buffer[buffsize];
   125   va_start( arguments, fmt );
   126   if ( vsnprintf( buffer, buffsize, fmt, arguments ) >= buffsize )
 std::string format(const char *fmt,...)
MsgStream format utility "a la sprintf(...)". 
virtual bool useColor() const  =0
Show whether colors are used. 
Definition of the MsgStream class used to transmit messages. 
Define general base for Gaudi exception. 
const std::string & buffer() const 
Access string buffer. 
bool m_useColors
use colors 
GAUDI_API void resetColor()
Reset the colors to defaults. 
static bool m_countInactive
Flag to state if the inactive messages has to be counted. 
bool isActive() const 
Accessor: is MsgStream active. 
IMessageSvc * m_service
Pointer to message service if buffer has send. 
virtual GAUDI_API MsgStream & doOutput()
Output method. 
std::string m_source
Use std::string for source information to be passed to the message service. 
MSG::Level m_level
Debug level of the message service. 
virtual std::string getLogColor(int logLevel) const  =0
Get the color codes for various log levels. 
GAUDI_API void setColor(MSG::Color col)
Set the text color. 
std::ostringstream m_stream
String MsgStream associated to buffer. 
The IMessage is the interface implemented by the message service. 
MSG::Level m_currLevel
Current debug level. 
GAUDI_API MsgStream(IMessageSvc *svc, int buffer_length=128)
Standard constructor: Connect to message service for output. 
void setLevel(int level)
Update outputlevel. 
virtual void reportMessage(const Message &msg, int outputLevel)=0
Report a message by sending a Message object to the message service. 
IInactiveMessageCounter * m_inactCounter
Pointer to service counting messages prepared but not printed because of wrong level. 
static GAUDI_API bool enableCountInactive(bool value=true)
Enable/disable the count of inactive messages. 
static GAUDI_API bool countInactive()
Returns the state of the counting of inactive messages (enabled/disabled). 
virtual int outputLevel() const  =0
Retrieve the current output level threshold.