phanindra798 commented on PR #4473: URL: https://github.com/apache/logging-log4j2/pull/4473#issuecomment-6881720342
@ramanathan1504 thank you for the approval and for merging `2.x` in. I pushed the header change: * With `createOnDemand`, `openFile()` and `openAndMap()` now write the layout header when the opened file is empty. * The header is no longer written before the file is opened, so `RandomAccessFile` does not create a header-only file at stop when no event came, and `MemoryMappedFile` no longer drops the header. Tests with a layout header cover all three appenders: the header is written on the first event (with and without `append`, with and without an existing file), and no file is created when no event is logged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
