Book Image

Mastering JBoss Enterprise Application Platform 7

By : Francesco Marchioni, Luigi Fugaro
Book Image

Mastering JBoss Enterprise Application Platform 7

By: Francesco Marchioni, Luigi Fugaro

Overview of this book

The JBoss Enterprise Application Platform (EAP) has been one of the most popular tools for Java developers to create modular, cloud-ready, and modern applications. It has achieved a reputation for architectural excellence and technical savvy, making it a solid and efficient environment for delivering your applications. The book will first introduce application server configuration and the management instruments that can be used to control the application server. Next, the focus will shift to enterprise solutions such as clustering, load balancing, and data caching; this will be the core of the book. We will also discuss services provided by the application server, such as database connectivity and logging. We focus on real-world example configurations and how to avoid common mistakes. Finally, we will implement the knowledge gained so far in terms of Docker containers and cloud availability using RedHat's OpenShift.
Table of Contents (20 chapters)
Mastering JBoss Enterprise Application Platform 7
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Managing your application logging


In the first part of this chapter, you learnt that the application server uses the JBoss LogManager to trace server activities. As far as applications are concerned, you have a wider set of options. For example, you can use the following:

  • Package any Java logging framework with your application (such as log4j), also known as per-deployment logging.

  • Define a logging profile in your EAP configuration, which is dedicated to your applications.

  • Define a specific logger (and associate it with a handler) to keep your application logs separate from your server logs. You can check the Defining new loggers section for an example of creating a new logger.

Per-deployment logging

As we said, per-deployment logging allows you to package a logging framework to your application, which includes its configuration file and (if not bundled into the application server) its libraries. If you are packaging an EAR, the configuration should be added in the META-INF directory. On the...