From 74555b2a9a524c568772bcea1332019a911bf86f Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 10 Jan 2015 17:44:12 +0100 Subject: [PATCH] Add logging infrastructure for mainwindow --- src/gui/Mainwindow.cxx | 3 ++- src/gui/Mainwindow.hxx | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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(); -- 2.39.5