#include <level.h>
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) |
enum Log4Qt::Level::Value |
The enumeration Value contains all possible Level values.
Log4Qt::Level::Level | ( | Value | value = NULL_INT |
) | [inline] |
int Log4Qt::Level::syslogEquivalent | ( | ) | const |
int Log4Qt::Level::toInt | ( | ) | const [inline] |
QString Log4Qt::Level::toString | ( | ) | const |
static Level Log4Qt::Level::fromString | ( | const QString & | rName, | |
bool * | pOk = 0 | |||
) | [static] |
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")