8.7 How you can use your own Filter/ formatter/ handler
This section describes the usage method for using the Filter class, Formatter class, or Handler class that you have created on your own, with the user log functionality. In this section, the class created by the user is called the user-created class.
You can perform log filtering or formatting of the output contents by creating a user-created class. You create a Filter class, Formatter class, or Handler class as a user-created class, include it in a library JAR or a container extension library, and use the class.
You can use a user-created class with the user log functionality by the following two methods:
-
Using library JAR
You can use this method for J2EE applications. You cannot use this method for batch applications.
-
Using container extension library
You can use this method in J2EE applications or batch applications.
The following subsections describe each method.
- Organization of this section