diff options
Diffstat (limited to 'cpp/src/Ice/LoggerI.cpp')
-rw-r--r-- | cpp/src/Ice/LoggerI.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/LoggerI.cpp b/cpp/src/Ice/LoggerI.cpp index ced361d0588..09e58b762d7 100644 --- a/cpp/src/Ice/LoggerI.cpp +++ b/cpp/src/Ice/LoggerI.cpp @@ -14,6 +14,7 @@ #include <IceUtil/MutexPtrLock.h> #include <Ice/LocalException.h> +#include <IceUtil/FileUtil.h> using namespace std; using namespace Ice; @@ -69,7 +70,7 @@ Ice::LoggerI::LoggerI(const string& prefix, const string& file, if(!file.empty()) { _file = file; - _out.open(file, fstream::out | fstream::app); + _out.open(IceUtilInternal::streamFilename(file), fstream::out | fstream::app); if(!_out.is_open()) { throw InitializationException(__FILE__, __LINE__, "FileLogger: cannot open " + _file); @@ -198,7 +199,7 @@ Ice::LoggerI::write(const string& message, bool indent) int err = IceUtilInternal::rename(_file, archive); - _out.open(_file, fstream::out | fstream::app); + _out.open(IceUtilInternal::streamFilename(_file), fstream::out | fstream::app); if(err) { |