Working with JBoss application logs

As mentioned in the Viewing application logs recipe, logs are important data generated by your applications. This recipe will cover in detail how you can work with logs in OpenShift's JBoss cartridge applications. This recipe will start with viewing logs of an existing JBoss application, and then you will add application-specific logging using the SLF4J library. This recipe assumes you have already read the Viewing application logs recipe.

Getting ready

This recipe will use the application created in the Creating and deploying Java EE 6 applications using the JBoss EAP and PostgreSQL 9.2 cartridges recipe in Chapter 7, OpenShift for Java Developers. You can recreate the application using the following command: ...

Get OpenShift Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.