Log4Qt::Level Class Reference

The class Level defines the level of a logging event. More...

#include <level.h>

List of all members.

Public Types

enum  Value {
  NULL_INT = 0, ALL_INT = 32, TRACE_INT = 64, DEBUG_INT = 96,
  INFO_INT = 128, WARN_INT = 150, ERROR_INT = 182, FATAL_INT = 214,
  OFF_INT = 255
}

Public Member Functions

 Level (Value value=NULL_INT)
int syslogEquivalent () const
int toInt () const
bool operator== (const Level &rOther) const
bool operator!= (const Level &rOther) const
bool operator< (const Level &rOther) const
bool operator<= (const Level &rOther) const
bool operator> (const Level &rOther) const
bool operator>= (const Level &rOther) const
QString toString () const

Static Public Member Functions

static Level fromString (const QString &rName, bool *pOk=0)

Friends

QDataStream & operator<< (QDataStream &rStream, const Level &rLevel)
QDataStream & operator>> (QDataStream &rStream, Level &rLevel)

Related Functions

(Note that these are not member functions.)

QDebug operator<< (QDebug debug, const Level &rLevel)


Detailed Description

The class Level defines the level of a logging event.

Note:
All the functions declared in this class are thread-safe.

Member Enumeration Documentation

The enumeration Value contains all possible Level values.

Enumerator:
NULL_INT  NULL_INT is used for no level has been specified
ALL_INT 
TRACE_INT 
DEBUG_INT 
INFO_INT 
WARN_INT 
ERROR_INT 
FATAL_INT 
OFF_INT 


Constructor & Destructor Documentation

Log4Qt::Level::Level ( Value  value = NULL_INT  )  [inline]


Member Function Documentation

int Log4Qt::Level::syslogEquivalent (  )  const

int Log4Qt::Level::toInt (  )  const [inline]

bool Log4Qt::Level::operator== ( const Level rOther  )  const [inline]

References mValue.

bool Log4Qt::Level::operator!= ( const Level rOther  )  const [inline]

References mValue.

bool Log4Qt::Level::operator< ( const Level rOther  )  const [inline]

References mValue.

bool Log4Qt::Level::operator<= ( const Level rOther  )  const [inline]

References mValue.

bool Log4Qt::Level::operator> ( const Level rOther  )  const [inline]

References mValue.

bool Log4Qt::Level::operator>= ( const Level rOther  )  const [inline]

References mValue.

QString Log4Qt::Level::toString (  )  const

static Level Log4Qt::Level::fromString ( const QString &  rName,
bool *  pOk = 0 
) [static]


Friends And Related Function Documentation

QDataStream & operator<< ( QDataStream &  rStream,
const Level rLevel 
) [friend]

Writes the given error rLevel to the given stream rStream, and returns a reference to the stream.

QDataStream & operator>> ( QDataStream &  rStream,
Level rLevel 
) [friend]

Reads an error from the given stream rStream into the given error rLevel, and returns a reference to the stream.

QDebug operator<< ( QDebug  debug,
const Level rLevel 
) [related]

Writes all object member variables to the given debug stream rDebug and returns the stream.

Level("ERROR")

See also:
QDebug


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

Generated on Sun Mar 1 16:40:46 2009 for Log4Qt by  doxygen 1.5.6