summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
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;