I have several web applications running on the same tomcat.
I have two questions:
1- By searching, I understood that when multiple applications are present,
There's one thing which must be clarified: There will be problems when different instances of Log4j are writing to the same file concurrently, whether running in the same JVM or not.
When using servers (and different classloaders) it is possible to have a single server-wide instance or multiple instances of Log4j, depending on deployment and configuration.