diff options
author | Jose <jose@zeroc.com> | 2016-04-07 19:07:10 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-04-07 19:07:10 +0200 |
commit | 538771b59abc2dedbf163abdc4df282224ae4d18 (patch) | |
tree | 51350d8db53fccfae5c3c9f5d6ff5ffe3b0d99ba /cpp/src/Ice/LoggerI.h | |
parent | ICE-7035 - Add option to roll log files (diff) | |
download | ice-538771b59abc2dedbf163abdc4df282224ae4d18.tar.bz2 ice-538771b59abc2dedbf163abdc4df282224ae4d18.tar.xz ice-538771b59abc2dedbf163abdc4df282224ae4d18.zip |
Do not throw if log rotation fails.
If log rotate fails because the file cannot be renamed
we will keep using the same log file or in case that it
cannot be reopen we will log to stderr.
Diffstat (limited to 'cpp/src/Ice/LoggerI.h')
-rw-r--r-- | cpp/src/Ice/LoggerI.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/LoggerI.h b/cpp/src/Ice/LoggerI.h index fbfb35b5a63..f6d8573df84 100644 --- a/cpp/src/Ice/LoggerI.h +++ b/cpp/src/Ice/LoggerI.h @@ -44,6 +44,12 @@ private: std::string _file; std::size_t _sizeMax; + + // + // In case of a log file rename failure is set to the time in milliseconds + // after which rename could be attempted again. Otherwise is set to zero. + // + Ice::Long _nextRetry; #if defined(_WIN32) && !defined(ICE_OS_WINRT) const IceUtil::StringConverterPtr _consoleConverter; #endif |