]> git.siccegge.de Git - frida/frida.git/commitdiff
Add logging infrastructure for mainwindow
authorChristoph Egger <christoph@christoph-egger.org>
Sat, 10 Jan 2015 16:44:12 +0000 (17:44 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Sat, 10 Jan 2015 16:44:12 +0000 (17:44 +0100)
src/gui/Mainwindow.cxx
src/gui/Mainwindow.hxx

index 196db38a18b838923a3cc3403b2b6b7d6c8768d0..9f1d353ab2a568c14609c051133ebf87143e62ce 100644 (file)
@@ -18,7 +18,8 @@ namespace {
 }
 
 Mainwindow::Mainwindow(InformationManager* mgr)
-       : manager(mgr) {
+       : manager(mgr)
+       , logger(log4cxx::Logger::getLogger("Mainwindow")) {
        openAction = new QAction(tr("&Open"), this);
        // saveAction = new QAction(tr("&Save"), this);
        exitAction = new QAction(tr("E&xit"), this);
index 40fa81d5f50de269927da297be9bbf6c37de8943..bb2a90e2a4fd15e19933d7b48f0f6b9606242e6e 100644 (file)
@@ -4,12 +4,15 @@
 #include <memory>
 #include <map>
 #include <set>
+
 #include <QTextEdit>
 #include <QPushButton>
 #include <QMainWindow>
 #include <QListWidget>
 #include <QStackedWidget>
 
+#include <log4cxx/logger.h>
+
 #include "disassembler/Disassembler.hxx"
 #include "widgets/BasicBlockWidget.hxx"
 #include "widgets/ScriptingDock.hxx"
@@ -38,6 +41,8 @@ private:
        std::map<uint64_t, BasicBlockWidget*> blocks;
        std::set<Function*> functions;
        InformationManager* manager;
+
+       log4cxx::LoggerPtr logger;
 private Q_SLOTS:
        void quit();
        void open();