]> git.siccegge.de Git - frida/frida.git/commitdiff
User proper hirarchial names for loggers
authorChristoph Egger <Christoph.Egger@fau.de>
Wed, 11 Mar 2015 16:08:10 +0000 (17:08 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Wed, 11 Mar 2015 16:08:10 +0000 (17:08 +0100)
src/core/InformationManager.cxx
src/disassembler/llvm/LLVMDisassembler.cxx
src/gui/Mainwindow.cxx
src/gui/widgets/BasicBlockWidget.cxx
src/gui/widgets/FunctionWidget.cxx
src/gui/widgets/ScriptingDock.cxx

index bee2a9eef9c9cbdd6e9ec66be681160f27fda9b5..711d47a552cb466b78b5c69a49d86e0d89ec9741 100644 (file)
@@ -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;
 }
index 1f1cdff1d17670d6b87b900523ef33b7f85bbc6a..96d08830e4f26087df5cd3feb373f5f47a781bf5 100644 (file)
@@ -58,7 +58,7 @@ LLVMDisassembler<ELFT>::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)
 {
index 269f3e7359d7c82b89e613c011d6f614097cee0a..f28f1e25a23161630c985e52319ab13d74582660 100644 (file)
@@ -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);
index 908c85e8c31c63f4833ce663550cb8f2a7f9b7e1..a2312c20140e596c7b86c350275433daa20de55a 100644 (file)
@@ -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);});
index 20d586df6eff9aff69d1921fcd4334c8af937520..ba96e5d4af18fe3732de18e9c9e9ef6a0f9e8b3c 100644 (file)
@@ -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;
index 8e5f3cf38f4a44a0f60d00dfae0c6e743a8c9fbc..0c25b596262bd8160e4bf390c9ca7db2056ba4ef 100644 (file)
@@ -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);