Main Page | Class List | File List | Class Members | File Members | Related Pages

Logger Class Reference

#include <logger.h>

List of all members.

Public Slots

virtual void print (const QString &text, int type=Configuration::Normal)
virtual void printDebug (const QString &text)
virtual void reload ()

Public Member Functions

 Logger (QObject *parent=0, const char *name=0)
virtual ~Logger ()


Detailed Description

The Logger class is used to log information to log files. Simply connect a signal that emits a const QString& to the print() slot. The text is outputted depending on the type parameter. Either to the normal log file, or debug.

Author:
Bojan D.

Definition at line 44 of file logger.h.


Constructor & Destructor Documentation

Logger::Logger QObject *  parent = 0,
const char *  name = 0
 

Default constructor

Definition at line 34 of file logger.cpp.

References Config().

Logger::~Logger  )  [virtual]
 

default destructor

Definition at line 43 of file logger.cpp.


Member Function Documentation

void Logger::print const QString &  text,
int  type = Configuration::Normal
[virtual, slot]
 

Prints text to the appropriate place, give by message type.

Parameters:
text text to be appended to the log file.
type the message type, has to be one of Logger::MessageType.

Definition at line 50 of file logger.cpp.

References Config(), Configuration::Log, and LogConfig::UseLog.

Referenced by printDebug().

void Logger::printDebug const QString &  text  )  [virtual, slot]
 

Prints text to debug.

Parameters:
text text to be printed.

Definition at line 65 of file logger.cpp.

References print().

void Logger::reload  )  [virtual, slot]
 

Reloads the log text streams. Reopens log files. Useful if the user's configuration settings regarding logs have changed.

Definition at line 70 of file logger.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Sep 5 12:52:34 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1