okteta
#include <scriptlogger.h>
NOT THREAD SAFE!
Definition at line 35 of file scriptlogger.h.
Enumerator |
---|
ColumnTime |
|
ColumnOrigin |
|
ColumnMessage |
|
COLUMN_COUNT |
|
Definition at line 42 of file scriptlogger.h.
Enumerator |
---|
LogInvalid |
|
LogInfo |
|
LogWarning |
|
LogError |
|
Definition at line 46 of file scriptlogger.h.
ScriptLogger::ScriptLogger |
( |
| ) |
|
|
explicit |
ScriptLogger::~ScriptLogger |
( |
| ) |
|
|
virtual |
void ScriptLogger::clear |
( |
| ) |
|
int ScriptLogger::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
QVariant ScriptLogger::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
QDebug ScriptLogger::error |
( |
const QString & |
origin = QString() | ) |
|
|
inline |
QVariant ScriptLogger::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
QDebug ScriptLogger::info |
( |
const QString & |
origin = QString() | ) |
|
|
inline |
- Returns
- a QDebug to write the message to. Do NOT save this object, since the string it writes to may become invalid! Just write the message using the << operators and do not touch it anymore after the line ends
Definition at line 99 of file scriptlogger.cpp.
QDebug ScriptLogger::log |
( |
LogLevel |
level, |
|
|
const QString & |
origin |
|
) |
| |
- Parameters
-
info | the minimum level that the messages must have |
- Returns
- all the messages, mainly used for testing
Definition at line 135 of file scriptlogger.cpp.
int ScriptLogger::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
void ScriptLogger::setLogToStdOut |
( |
bool |
val | ) |
|
|
inline |
whether to log to stdout instead of saving the messages
Definition at line 86 of file scriptlogger.h.
QDebug ScriptLogger::warn |
( |
const QString & |
origin = QString() | ) |
|
|
inline |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.