diff options
| author | Javier <dev.git@javispedro.com> | 2014-12-08 00:28:48 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2014-12-08 00:28:48 +0100 |
| commit | 38b2c79758a2ef619b887e0e226a71ab39b10e80 (patch) | |
| tree | 2c6c4cddb1442feadb517b5cbc91952c9347196e | |
| parent | 4280a9bda38046f702a4151d7b831a3bf46ef169 (diff) | |
use same config path as UI and fix logfiles
| -rw-r--r-- | daemon/daemon.cpp | 1 | ||||
| -rw-r--r-- | log4qt-debug.conf | 4 | ||||
| -rw-r--r-- | 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 |
