From: Christoph Egger Date: Fri, 20 Feb 2015 16:37:49 +0000 (+0100) Subject: Create Logger for BasicBlockWidgets X-Git-Tag: v0.1~96 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=dbf3f68ecc0c6d5d992a8d0e8254a42c561592f9;p=frida%2Ffrida.git Create Logger for BasicBlockWidgets --- diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index b9a1b14..8b6dbe5 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -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); diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 2c9cec3..b45069c 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -7,6 +7,7 @@ #include #include #include +#include class Mainwindow; class BasicBlock; @@ -49,6 +50,7 @@ private: Mainwindow* mainwindow; std::vector previous; BasicBlockWidget* next[2]; + log4cxx::LoggerPtr logger; }; #endif