Java developers can create programs to monitor application
server logs using JMX notifications.
About this task
The most common log message listeners are written
in Java, and connect to the deployment manager or an application server
using SOAP. Use this topic to build a Java client that listens for
log events.
Note: This topic references one or more of the application
server log files. As a recommended alternative, you can configure
the server to use the High Performance Extensible Logging (HPEL) log
and trace infrastructure instead of using SystemOut.log , SystemErr.log, trace.log, and activity.log files on distributed and IBM® i systems. You can also use
HPEL in conjunction with your native z/OS® logging facilities. If you are using HPEL, you can access
all of your log and trace information using the LogViewer command-line
tool from your server profile bin directory. See the information
about using HPEL to troubleshoot applications for more information
on using HPEL.
Avoid trouble: Be careful when adding listeners
to servers with high logging volume as JMX notifications can slow
down your server.
gotcha