0 Replies Latest reply on May 6, 2009 12:14 PM by Frederico Pereira

    Separating log files for web applications

    Frederico Pereira Newbie

      Hello there,

      Has anyone here tried to separate log files for web applications? I followed the hints indicated in this link:


      But it is not working. Configuring separate appenders (files) for each application is easy, the problem is to ensure that messages generated by shared libraries (hibernate, etc) will be directed to the log file of the application that generates the message and not to the server.log as usual.

      For instance, if you have an application x.war and another y.war, both using JPA+Hibernate and an unhandled exception is thrown by Hibernate during the execution of x.war, the message goes to the server.log file, since the appender for the category configured for the package "org.hibernate" is the server.log file by default. However, it should go to the x.log file.

      The above link intends to solve this problem, but it did not work for me. I am using JBoss 4.2.2.

      Thanks for any help,