Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


The logging subsystem is where you can configure the information statements of WildFly and your application, for debugging and auditing purposes.

WildFly comes with a default configuration, which can be found in the configuration folder of both the standalone and domain directories. The default configuration automatically logs the information on the console and on a file named server.log.

As you will learn in this chapter, WildFly has seven different handlers to help you persist with your application logs:

  • Console: Writes application logs to the standard output

  • File: Writes application logs to a file

  • Periodic: Writes application logs to a file by rotating it on the basis of time

  • Size: Writes application logs to a file by rotating it on the basis of size

  • Async: Wraps one or more handler to give asynchronous behavior

  • Custom: Lets you use your own handler, as long as it extends the java.util.logging.Handler class

  • Syslog: Writes application logs to the default OS logger

Depending on...