apache / apache/logging-log4j2
Log file timestamp not updated on some file systems. Support periodic sync to flush metadata to FS
Open
appenders
waiting-for-maintainer
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
Hello we are experiencing issue on Azure file shares where log files metadata (particularly last updated timestamp) is not being updated till log file is closed. We confirmed that it is not log4j issue but a problem with any FileOutputStream on this file system.
Would it be possible to add functionality to file manager implementations whereby FileOutputStream's file descriptor would be fsynched with a configured Appender's frequency
`FileOutputStream.getFD().sync();`
Or perhaps a more generalized solution
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.