I want to migrate from Log4J 1.x to Log4J 2 but at the same time I want to keep Log4J to support any external features (jars) that use Log4J. There are custom appenders written in Log4J and so the appenders will be re-written according to Log4J2 using plugins. So two configuration files needs to be there to support each version and the logs from both versions need to be written to the same file with the same format as defined in the custom appenders.
I found that simultaneous writing of multiple appenders to the same file is possible within a version but is it possible for the appenders coming from two Log4J versions to write to the same file simultaneously? If yes is it a recommended practice and please suggest an alternative if it is not recommended.