From: Christoph Egger Date: Sat, 10 Jan 2015 16:44:12 +0000 (+0100) Subject: Add logging infrastructure for mainwindow X-Git-Tag: v0.1~133 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=74555b2a9a524c568772bcea1332019a911bf86f;p=frida%2Ffrida.git Add logging infrastructure for mainwindow --- diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 196db38..9f1d353 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -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); diff --git a/src/gui/Mainwindow.hxx b/src/gui/Mainwindow.hxx index 40fa81d..bb2a90e 100644 --- a/src/gui/Mainwindow.hxx +++ b/src/gui/Mainwindow.hxx @@ -4,12 +4,15 @@ #include #include #include + #include #include #include #include #include +#include + #include "disassembler/Disassembler.hxx" #include "widgets/BasicBlockWidget.hxx" #include "widgets/ScriptingDock.hxx" @@ -38,6 +41,8 @@ private: std::map blocks; std::set functions; InformationManager* manager; + + log4cxx::LoggerPtr logger; private Q_SLOTS: void quit(); void open();