diff --git a/libs/libcommon/src/daemon.cpp b/libs/libcommon/src/daemon.cpp index d845d45473b..3126fcaae4c 100644 --- a/libs/libcommon/src/daemon.cpp +++ b/libs/libcommon/src/daemon.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -125,7 +126,7 @@ void Daemon::buildLoggers() pf->setProperty("times", "local"); FormattingChannel *log = new FormattingChannel(pf); FileChannel *file = new FileChannel(); - file->setProperty("path", config().getString("logger.log")); + file->setProperty("path", Poco::Path(config().getString("logger.log")).absolute().toString()); file->setProperty("rotation", config().getRawString("logger.size", "100M")); file->setProperty("archive", "number"); file->setProperty("purgeCount", config().getRawString("logger.count", "1")); @@ -142,7 +143,7 @@ void Daemon::buildLoggers() pf->setProperty("times", "local"); FormattingChannel *errorlog = new FormattingChannel(pf); FileChannel *errorfile = new FileChannel(); - errorfile->setProperty("path", config().getString("logger.errorlog")); + errorfile->setProperty("path", Poco::Path(config().getString("logger.errorlog")).absolute().toString()); errorfile->setProperty("rotation", config().getRawString("logger.size", "100M")); errorfile->setProperty("archive", "number"); errorfile->setProperty("purgeCount", config().getRawString("logger.count", "1"));