summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-04-24 16:59:50 +0200
committerJonathan Bauer2011-04-24 16:59:50 +0200
commit51a1b87480973792fcadb35767d7b61f32d12df9 (patch)
tree401e398cd7627f1578179cea7582c98f361b8941 /src/main.cpp
parentdm thread ending properly now, few fixes (diff)
downloadfbgui-51a1b87480973792fcadb35767d7b61f32d12df9.tar.gz
fbgui-51a1b87480973792fcadb35767d7b61f32d12df9.tar.xz
fbgui-51a1b87480973792fcadb35767d7b61f32d12df9.zip
auto-close removed, handled by fbgui nowmake
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9b0a18a..601a62e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -88,13 +88,20 @@ int main(int argc, char *argv[]) {
if (clOpts.contains("debug")) {
debugMode = clOpts.value("debug").toInt();
- // start basic debug log
+ // start basic debug output on terminal
qxtLog->disableLoggerEngine("DEFAULT");
qxtLog->addLoggerEngine("std_logger", new LoggerEngine_std);
qxtLog->initLoggerEngine("std_logger");
qxtLog->setMinimumLevel("std_logger", QxtLogger::DebugLevel);
qxtLog->enableLogLevels(QxtLogger::DebugLevel);
qxtLog->debug() << "Initializing fbgui...";
+ // start debug logging to file.
+ qxtLog->addLoggerEngine("file_logger", new LoggerEngine_file);
+
+ //qxtLog->initLoggerEngine("std_logger");
+ //qxtLog->setMinimumLevel("std_logger", QxtLogger::DebugLevel);
+ //qxtLog->enableLogLevels(QxtLogger::DebugLevel);
+
} else
debugMode = -1;