summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon/daemon.cpp1
-rw-r--r--log4qt-debug.conf4
-rw-r--r--log4qt-release.conf4
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