Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Logger Class Reference

#include </tmp/quassel/src/common/logger.h>

Inheritance diagram for Logger:

Public Member Functions

 Logger (Quassel::LogLevel level)
 ~Logger ()
template<typename T >
Loggeroperator<< (const T &value)
Loggeroperator<< (const QStringList &t)
Loggeroperator<< (bool t)

Static Public Member Functions

static void logMessage (QtMsgType type, const char *msg)

Private Member Functions

void log ()

Private Attributes

QTextStream _stream
QString _buffer
Quassel::LogLevel _logLevel

Detailed Description

Definition at line 30 of file logger.h.

Constructor & Destructor Documentation

Logger ( Quassel::LogLevel  level)
inline

Definition at line 33 of file logger.h.

Referenced by logMessage().

~Logger ( )

Definition at line 32 of file logger.cpp.

References log().

Member Function Documentation

void logMessage ( QtMsgType  type,
const char *  msg 
)
static
Logger& operator<< ( const T &  value)
inline

Definition at line 43 of file logger.h.

References _stream.

Logger& operator<< ( const QStringList &  t)
inline

Definition at line 44 of file logger.h.

References _stream.

Logger& operator<< ( bool  t)
inline

Definition at line 45 of file logger.h.

References _stream.

Member Data Documentation

QTextStream _stream
private

Definition at line 49 of file logger.h.

Referenced by operator<<().

QString _buffer
private

Definition at line 50 of file logger.h.

Referenced by log().

Quassel::LogLevel _logLevel
private

Definition at line 51 of file logger.h.

Referenced by log().


The documentation for this class was generated from the following files: