Dynamically configuring logging in WebLogic Server
In the recipe Setting up logging in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations, we introduced the Oracle Diagnostics Logging (ODL) framework and how it could be utilized in an ADF Fusion web application through the ADFLogger
class. In this recipe, we will demonstrate how to dynamically configure the ODL log level for a WebLogic Server instance at runtime. Specifically, we will configure the oracle.jbo
business components logger for the ManagedServer1
WebLogic Server instance to use the NOTIFICATION
log level. ManagedServer1
was created in Configuring and using the Standalone WebLogic Server, Chapter 10, Deploying ADF Applications. Dynamic log configuration is done via the WLST WebLogic administration utility. This program allows for the execution of custom scripts written in jython (an implementation of Python written in Java) to configure ODL.
Getting ready
You will need a Standalone WebLogic Server domain...