Project

General

Profile

Actions

Bug #1145

open

oflog seems to "lose" log files when renaming

Added by Marco Eichelberg 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Library
Target version:
-
Start date:
2025-01-17
Due date:
% Done:

0%

Estimated time:
Module:
oflog
Operating System:
Windows
Compiler:

Description

The oflog logger can be configured to create a new log file once a certain file size has been reached and to rotate file names with a selectable number of log files to be kept.
Apparently during the renaming process that occurs when a new log file is started, files may get lost somehow, at least on Windows.
See DCMTK forum posting https://forum.dcmtk.org/viewtopic.php?t=5411.

The attached sample code was posted to the DCMTK forum. Note that it is intended for Windows and will require Boost to be present.


Files

poc.cc (2.95 KB) poc.cc Sample file for reproducing the bug Marco Eichelberg, 2025-01-17 15:25

No data to display

Actions

Also available in: Atom PDF