From: Christoph Egger Date: Wed, 11 Mar 2015 16:08:10 +0000 (+0100) Subject: User proper hirarchial names for loggers X-Git-Tag: v0.1~46 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=cab6494b97d1626c7b9285b69df324d9c9953614;p=frida%2Ffrida.git User proper hirarchial names for loggers --- diff --git a/src/core/InformationManager.cxx b/src/core/InformationManager.cxx index bee2a9e..711d47a 100644 --- a/src/core/InformationManager.cxx +++ b/src/core/InformationManager.cxx @@ -13,7 +13,7 @@ InformationManager* current_information_manager; InformationManager::InformationManager() - : logger(log4cxx::Logger::getLogger("InformationManager")) + : logger(log4cxx::Logger::getLogger("core.InformationManager")) { current_information_manager = this; } diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index 1f1cdff..96d0883 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -58,7 +58,7 @@ LLVMDisassembler::LLVMDisassembler(const std::string& filename, InformationManager* manager, ObjectFile* file) : Disassembler() - , logger(log4cxx::Logger::getLogger("LLVMDisassembler")) + , logger(log4cxx::Logger::getLogger("disassembler.LLVMDisassembler")) , triple("unknown-unknown-unknown") , manager(manager) { diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 269f3e7..f28f1e2 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -19,7 +19,7 @@ Mainwindow::Mainwindow(InformationManager* mgr) : manager(mgr) - , logger(log4cxx::Logger::getLogger("Mainwindow")) { + , logger(log4cxx::Logger::getLogger("gui.Mainwindow")) { openAction = new QAction(tr("&Open"), this); loadAction = new QAction(tr("&Load"), this); saveAction = new QAction(tr("&Save"), this); diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 908c85e..a2312c2 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -65,7 +65,7 @@ BasicBlockWidget::BasicBlockWidget(const QString& name, BasicBlock * block, : width(270), height(45), name(name) , _table(NULL) , block(block), mainwindow(mainwindow) - , logger(log4cxx::Logger::getLogger(name.toStdString() + " BasicBlockWidget")) { + , logger(log4cxx::Logger::getLogger("gui.BasicBlockWidget." + name.toStdString())) { next[0] = NULL; next[1] = NULL; block->getManager()->connect_rename_function_signal([=](RenameFunctionEvent* event) {updateFunctionName(event);}); diff --git a/src/gui/widgets/FunctionWidget.cxx b/src/gui/widgets/FunctionWidget.cxx index 20d586d..ba96e5d 100644 --- a/src/gui/widgets/FunctionWidget.cxx +++ b/src/gui/widgets/FunctionWidget.cxx @@ -18,7 +18,7 @@ namespace { FunctionWidget::FunctionWidget(Function* function, Mainwindow* mainwindow) : function(function) , mainwindow(mainwindow) - , logger(log4cxx::Logger::getLogger("Mainwindow")) { + , logger(log4cxx::Logger::getLogger("gui.Mainwindow")) { // CFG CFGScene * scene = new CFGScene; diff --git a/src/gui/widgets/ScriptingDock.cxx b/src/gui/widgets/ScriptingDock.cxx index 8e5f3cf..0c25b59 100644 --- a/src/gui/widgets/ScriptingDock.cxx +++ b/src/gui/widgets/ScriptingDock.cxx @@ -7,7 +7,7 @@ ScriptingDock::ScriptingDock(Interpreter* interpreter, FridaDock* parent) : QWidget(parent) - , logger(log4cxx::Logger::getLogger("ScriptingDock")) + , logger(log4cxx::Logger::getLogger("gui.ScriptingDock")) , interpreter(interpreter) { setLayout(layout = new QGridLayout); layout->addWidget(browser = new QTextBrowser, 0, 0, 1, 0);