Re: [Log4cplus-devel] log4cplus rolling file appender
Logging Framework for C++
Brought to you by:
wilx
From: Václav Z. <vha...@gm...> - 2013-12-17 14:14:50
|
On 17 December 2013 15:08, Vadim Kuras <vad...@gm...> wrote: > On Tue, Dec 17, 2013 at 3:52 PM, Václav Zeman <vha...@gm...> wrote: >> >> On 17 December 2013 14:15, Vadim Kuras wrote: >> > Hi, >> > >> > When multiple processes write the the log file, the backups are not >> > created/deleted. >> > >> > Is that a known issue? >> I am assuming you are using Windows. If you are using Windows then >> yes, it is a known issue. It is caused by Windows file >> sharing/locking. > It that going to be fixed one day? I have some part of the fix done in the form of a custom file stream that opens the file with FILE_SHARE_DELETE sharing flag set, which should allow deleting and renaming of open files. It needs some more testing and integration into the actual log4cplus code base and FileAppender code. I am attaching the source just in case anybody wants to beat me to it. -- VZ |