From 38b2c79758a2ef619b887e0e226a71ab39b10e80 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 8 Dec 2014 00:28:48 +0100 Subject: use same config path as UI and fix logfiles --- daemon/daemon.cpp | 1 + log4qt-debug.conf | 4 ++-- log4qt-release.conf | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/daemon/daemon.cpp b/daemon/daemon.cpp index c9456c6..b745e5c 100644 --- a/daemon/daemon.cpp +++ b/daemon/daemon.cpp @@ -70,6 +70,7 @@ void initLogging() int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); + app.setApplicationName("pebble"); // Use the same appname as the UI. // Init logging should be called after app object creation as initLogging() will examine // QCoreApplication for determining the .conf files locations diff --git a/log4qt-debug.conf b/log4qt-debug.conf index cabd53a..2d55cdc 100644 --- a/log4qt-debug.conf +++ b/log4qt-debug.conf @@ -1,4 +1,4 @@ -log4j.rootLogger=DEBUG, consolelog, syslog #, filelog +log4j.rootLogger=DEBUG, consolelog, syslog log4j.appender.consolelog=org.apache.log4j.ColorConsoleAppender log4j.appender.consolelog.layout=org.apache.log4j.SimpleTimeLayout @@ -10,4 +10,4 @@ log4j.appender.syslog.threshold=ERROR log4j.appender.filelog=org.apache.log4j.DailyRollingFileAppender log4j.appender.filelog.layout=org.apache.log4j.SimpleTimeLayout -log4j.appender.filelog.file=$XDG_CACHE_HOME/pebble.log +log4j.appender.filelog.file=/tmp/pebble.log diff --git a/log4qt-release.conf b/log4qt-release.conf index 996c311..de7c321 100644 --- a/log4qt-release.conf +++ b/log4qt-release.conf @@ -1,4 +1,4 @@ -log4j.rootLogger=WARN, consolelog, syslog #, filelog +log4j.rootLogger=WARN, consolelog, syslog log4j.appender.consolelog=org.apache.log4j.ColorConsoleAppender log4j.appender.consolelog.layout=org.apache.log4j.SimpleTimeLayout @@ -10,4 +10,4 @@ log4j.appender.syslog.threshold=ERROR log4j.appender.filelog=org.apache.log4j.DailyRollingFileAppender log4j.appender.filelog.layout=org.apache.log4j.SimpleTimeLayout -log4j.appender.filelog.file=$XDG_CACHE_HOME/pebble.log +log4j.appender.filelog.file=/tmp/pebble.log -- cgit v1.2.3