rgoers commented on issue #2661: URL: https://github.com/apache/logging-log4j2/issues/2661#issuecomment-2166934448
Note that using append="false" on a FileAppender where the same file is already open on another FileAppender would likely cause serious problems on Windows if each FileAppender had its own FileManager. Even on Unix I would imagine a user might file a bug if append="false" actually cleared the already open file being written to by another FileAppender as it would result in data loss. Having multiple FileAppenders point to the same file on the same file system is just a bad, bad idea, even if they are in separate JVMs or are running on separate servers. Note that in the options Piotr recommends the second option may not be possible if there are multiple LoggerContexts each trying to log with the same configuration or multiple applications running on the same server with each using the same configuration. I should not that ALL Appender Managers exhibit similar behavior. Every Manager keys on the options that are necessary for it to be unique and will cause all other Appenders using those same values to share the same Manager. Closing since this is by design and won't be changed. -- 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]
