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

Qmms::Log::LoggingEvent Class Reference

Structure that holds the event to be logged. More...

#include <log.hh>

List of all members.

Public Methods

 LoggingEvent ()
 Default constructor does nothing. More...

 LoggingEvent (const QString fqn, Category *cat, const QString lvl, const QString msg)
 Constructs a LoggingEvent object. More...

 ~LoggingEvent ()
 Destroys the logging event. More...

QString getMessage () const
 Accessor method. More...

QString getFQN () const
 Accessor method. More...

CategorygetCategory () const
 Accessor method. More...

QString getCategoryName () const
 Accessor method. More...

QString getLevel () const
 Accessor method. More...

QDateTime getTimestamp () const
 Accessor method. More...


Private Attributes

Categorycategory
 A pointer to the category to log to. More...

QString level
 The level of the logging event. More...

QString message
 The message to log with. More...

QString fqnOfCategoryClass
 The fully-qualified class name of the category. More...

QString categoryName
 The name of the category. More...

QDateTime timeStamp
 The date/time at which logging occurs. More...


Detailed Description

Structure that holds the event to be logged.

All events to be logged are made into one of these.


Constructor & Destructor Documentation

Qmms::Log::LoggingEvent::LoggingEvent  
 

Default constructor does nothing.

Qmms::Log::LoggingEvent::LoggingEvent const QString    fqn,
Category   cat,
const QString    lvl,
const QString    msg
 

Constructs a LoggingEvent object.

Parameters:
fqn  The fully-qualified class name of the category
cat  Pointer to the category for which logging occurs
lvl  The loglevel of the LoggingEvent
msg  The logging message

Qmms::Log::LoggingEvent::~LoggingEvent  
 

Destroys the logging event.


Member Function Documentation

Category* Qmms::Log::LoggingEvent::getCategory   const
 

Accessor method.

Returns:
A pointer to the LoggingEvent's category.

QString Qmms::Log::LoggingEvent::getCategoryName   const
 

Accessor method.

Returns:
The name of the category, as a QString.

QString Qmms::Log::LoggingEvent::getFQN   const
 

Accessor method.

Returns:
The fqn of the logging category.

QString Qmms::Log::LoggingEvent::getLevel   const
 

Accessor method.

Returns:
The level of the LoggingEvent, as a QString.

QString Qmms::Log::LoggingEvent::getMessage   const
 

Accessor method.

Returns:
The LoggingEvent's message.

QDateTime Qmms::Log::LoggingEvent::getTimestamp   const
 

Accessor method.

Returns:
The timestamp of the LoggingEvent, as a QDateTime.


Member Data Documentation

Category* Qmms::Log::LoggingEvent::category [private]
 

A pointer to the category to log to.

QString Qmms::Log::LoggingEvent::categoryName [private]
 

The name of the category.

QString Qmms::Log::LoggingEvent::fqnOfCategoryClass [private]
 

The fully-qualified class name of the category.

QString Qmms::Log::LoggingEvent::level [private]
 

The level of the logging event.

QString Qmms::Log::LoggingEvent::message [private]
 

The message to log with.

QDateTime Qmms::Log::LoggingEvent::timeStamp [private]
 

The date/time at which logging occurs.


The documentation for this class was generated from the following file:
Generated on Fri Jan 3 15:04:05 2003 for QmmsLog by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001