How to enable access logging for JBoss EAP 4 or 5?

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x

Issue

  • How to access logs in JBoss EAP 4?
  • How to access logs in JBoss EAP 5?
  • How to enable friendly access log times?

Resolution

This solution is part of the [Master] Configuring Access Logs in Red Hat Middleware Products..

Since JBoss EAP uses Apache Catalina as web server just like Apache Tomcat, update your $JBOSS_HOME/server/$CONFIG/deploy/$JBOSSWEB/server.xml following the instructions in How to enable access log in Apache Tomcat?

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.