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

The basics of logging


JBoss EAP provides a highly configurable logging system that can be used both by the application server and the applications running on top of it. The logging subsystem is based on the JBoss LogManager project, which internally uses the java.util.logging API. The core components of the LogManager project are the following:

  • Categories: They define which messages need to be captured

  • Handlers: They define how to deal with these messages (for example, log to file, console, and so on)

  • Formatters: They define how log messages appear in log files and so on

Before digging into the details of logging components, we will point out the default log file locations for quick reference.

Default log file locations

By default, the log files for a standalone server can be found in the log directory of the jboss.server.base.dir with the name server.log. Hence, by default, you will find the latest server.log in the folder $JBOSS_HOME/standalone/log. As you will see in a minute, this server...