0 Replies Latest reply on Apr 11, 2011 10:27 AM by awulms

    How to configure richfaces4 to log through log4j

    awulms

      Hi,

       

      I'm using log4j for my application logic (backing beans, business logic, etc). I have included  log4j.jar, apache-log4j-extras-1.1.jar, commons-logging-1.1.1.jar, slf4j-api-1.5.6.jar and slf4j-jdk14-1.5.6.jar in WEB-INF/lib directory. Furthermore, I have placed a log4j.xml file in the resources folder, which is on the classpath of the application.

       

      All my own application messages are nicely going to the log file configured in the log4j.xml file.

      However, the messages from richfaces 4 (I'm using version '4.0.0 final') are going to the console of tomcat (I'm using tomcat 6) and not to the log4j configured log file.

       

      How can I configure richfaces to send all log messages through log4j?

       

      Note that I'm not using maven. I have simply included the different rich-faces libraries (richfaces-core-impl-4.0.0-Final.jar, richfaces-components-api-4.0.0.Final.jar, richfaces-components-ui-4.0.0.Final.jar and richfaces-core-api-4.0.0.Final.jar) in the WEB-INF/lib folder of my application.

       

      Any help, tips or pointers to the appropriate documentation are welcome.

       

      Thanks and kind regards,

      Alex Wulms