GCF LOGO VCL LOGO

Represents a single message in the log. More...

#include <GCF3/Log>

Public Types

enum  LogLevel
 

Public Member Functions

 ~LogMessage ()
 
GCF::LogMessageparent () const
 
QList< GCF::LogMessage * > children () const
 
int logLevel () const
 
QString context () const
 
QByteArray logCode () const
 
QString message () const
 
QString details () const
 

Detailed Description

Instances of this class are created by GCF::Log::info(), GCF::Log::warning(), GCF::Log::debug(), GCF::Log::error(), GCF::Log::fatal() and stored in the log message hierarchy, until the message is handled by the log message handler (GCF::LogMessageHandlerInterface). As soon as the message is handled; it gets destroyed.

This class is internal. You will need to use it only if you are writing your own handler.

Member Enumeration Documentation

Enumeration of log message levels

Constructor & Destructor Documentation

GCF::LogMessage::~LogMessage ( )

Destroys the log message and all its children

Member Function Documentation

GCF::LogMessage * GCF::LogMessage::parent ( ) const
Returns
pointer to the parent log message
QList< GCF::LogMessage * > GCF::LogMessage::children ( ) const
Returns
list of pointers to children messages
int GCF::LogMessage::logLevel ( ) const
Returns
log-level value. It can be any of the GCF::LogMessage::LogLevel values.
QString GCF::LogMessage::context ( ) const
Returns
context of the log message
QByteArray GCF::LogMessage::logCode ( ) const
Returns
code of the log message
QString GCF::LogMessage::message ( ) const
Returns
one-line text of the log message
QString GCF::LogMessage::details ( ) const
Returns
multi-line text of the log message