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

Qmms::Log::BasicConfigurator Class Reference

Class of static methods that configures the qmmslog system in a simple manner. More...

#include <log.hh>

Inheritance diagram for Qmms::Log::BasicConfigurator::

Qmms::Log::PropertyConfigurator List of all members.

Public Methods

 ~BasicConfigurator ()
 Destructor. More...


Static Public Methods

void configure ()
 Use this method to configure the qmmslog system. More...

void qmmsLogOutput (QtMsgType type, const char *msg)
 Routes the output from Qt's debugging system to qmmslog. More...


Protected Methods

 BasicConfigurator ()
 Constructor. More...


Detailed Description

Class of static methods that configures the qmmslog system in a simple manner.

Does not allow configuration from a file, but of course categories and appenders can be manipulated from inside the application, as usual. Use PropertyConfigurator if you want full control over the configuration. This class is used simply by invoking the static method configure().


Constructor & Destructor Documentation

Qmms::Log::BasicConfigurator::BasicConfigurator   [protected]
 

Constructor.

Does nothing.

Qmms::Log::BasicConfigurator::~BasicConfigurator  
 

Destructor.

Does nothing.


Member Function Documentation

void Qmms::Log::BasicConfigurator::configure   [static]
 

Use this method to configure the qmmslog system.

It creates a SimpleLayout, a ConsoleAppender, and a Root Category (obviously) with level DEBUG. It also accepts messages from Qt's logging system.

Reimplemented in Qmms::Log::PropertyConfigurator.

void Qmms::Log::BasicConfigurator::qmmsLogOutput QtMsgType    type,
const char *    msg
[static]
 

Routes the output from Qt's debugging system to qmmslog.


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