1
0
Fork 0
forked from len0rd/rockbox

Use cutelogger for Rockbox Utility internal trace.

Change tracing from qDebug() to use cutelogger, which is available under the
LGPL2.1. This allows to automatically add filename and line number to the log,
and also provides multiple log levels.

Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
This commit is contained in:
Dominik Riebeling 2013-11-03 11:08:18 +01:00
parent 335ec75d60
commit 4d2ce949b3
65 changed files with 2420 additions and 455 deletions

View file

@ -29,20 +29,12 @@ class SysTrace : public QDialog
Q_OBJECT
public:
SysTrace(QWidget *parent);
#if QT_VERSION < 0x050000
static void debug(QtMsgType type, const char* msg);
#else
static void debug(QtMsgType type, const QMessageLogContext &context, const QString &msg);
#endif
static QString getTrace() {return debugbuffer;}
static QString getTrace(void);
static void save(QString filename = "");
static void rotateTrace(void);
private:
static void flush(void);
void changeEvent(QEvent *event);
Ui::SysTraceFrm ui;
static QString debugbuffer;
static QString lastmessage;
static unsigned int repeat;
private slots:
void saveCurrentTrace(void);