Skip to content

Consolidate LogFile implementation to use FileOutputStream #4431

@matejk

Description

@matejk

LogFile has different implementations for Windows using Win32 API and STD for other platforms where Poco::FileOutputStream is used. Poco::FileOutputStream has Windows and Posix implementations.

LogFile calls FlushFileBuffers on Windows which forcefully flushes buffers to disk. Posix equivalent would be fsync.

  • New function fsync (or flushToDisk) shall be added to FileStream_POSIX and FileStream_WIN32.
  • Implementation of LogFile shall be unified to use FileOutputStream

Related: #2443, #4429.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions