]> git.siccegge.de Git - frida/frida.git/commitdiff
Create Logger for BasicBlockWidgets
authorChristoph Egger <Christoph.Egger@fau.de>
Fri, 20 Feb 2015 16:37:49 +0000 (17:37 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Fri, 20 Feb 2015 16:37:49 +0000 (17:37 +0100)
src/gui/widgets/BasicBlockWidget.cxx
src/gui/widgets/BasicBlockWidget.hxx

index b9a1b1411bfb97265d6993e9fa84196fb8d2f253..8b6dbe56d7ff336ac5331b7f2e5842824ba69384 100644 (file)
@@ -61,7 +61,8 @@ BasicBlockWidget::BasicBlockWidget(const QString& name, BasicBlock * block,
                                    Mainwindow * mainwindow)
        : width(270), height(45), name(name)
        , _table(NULL)
-       , block(block), mainwindow(mainwindow) {
+       , block(block), mainwindow(mainwindow)
+       , logger(log4cxx::Logger::getLogger(name.toStdString() + "BasicBlock")) {
        next[0] = NULL; next[1] = NULL;
        _widget.reset(new CustomQGraphicsTextItem("", this, mainwindow));
        _widget->setPos(5, 20);
index 2c9cec3331d142f01f338bbe4d1c34b270efb177..b45069cc560155bfcfa01b7bba87de067fe5cd1c 100644 (file)
@@ -7,6 +7,7 @@
 #include <tuple>
 #include <array>
 #include <memory>
+#include <log4cxx/logger.h>
 
 class Mainwindow;
 class BasicBlock;
@@ -49,6 +50,7 @@ private:
        Mainwindow* mainwindow;
        std::vector<BasicBlockWidget*> previous;
        BasicBlockWidget* next[2];
+       log4cxx::LoggerPtr logger;
 };
 
 #endif