Part VIII Appendixes
Appendix D – Use the Generic Log Monitor Facility with Log4J
WebLogic Mobility Server provides a Generic Log Monitor facility allowing WebLogic Mobility
Server Exceptions, Warnings, and Diagnostics to be delivered to an alternative Logging system in
addition to the standard WebLogic Mobility Server logging mechanisms.
Note: This section describes how to use the GenericLogMonitor facility with Log4J. However, it
is possible to use an alternative logging tool if required.
In order to use the GenericLogMonitor facility with Log4J it is necessary to:
•
Create a class that implements this interface - this is the class that will intercept WebLogic
Mobility Server Exceptions, Warnings and Diagnostics.
•
Place this class in the com.mobility.diagnostics package under the
<install_directory>\WEB-INF\classes directory of the web application.
•
Specify this class in the mis.properties file found in the <install_directory>\WEB-
INF\classes directory of the web application.
•
Ensure the log4j jar file is in your class path (or lib directory of the webapp).
•
Create a valid Log4J properties file that will be accessed from within the implementation
class - this will detail where messages should be sent along with the format of how they
should be displayed. For example messages could be sent to the console, a log file, a remote
server or a combination thereof.
•
If the class specified in the mis.properties file then messages will be outputted in default
mode (to the console).
A summary of the required changes is captured in this table.
File to change
Required Changes
mis.properties
When subscribing to Diagnostics, you need to specify the class that will
intercept Diagnostics messages and WebLogic Mobility Server
Exceptions/Warnings in the mis.properties file (located in the
<install_directory>\WEB-INF\classes directory of the web application).
For example:
diagnostics.startup.subscriptions.misLog.topic:
MIS.Browser.Request
diagnostics.startup.subscriptions.misLog.level: normal
diagnostics.startup.subscriptions.misLog.classname:
com.mobileaware.diagnostics.GenericLogMonitorImpl
200 - BEA WebLogic Mobility Server User Guide
Need help?
Do you have a question about the WebLogic and is the answer not in the manual?