My Oracle Support Banner

How to set Runtime/Persistent loggers using WLST (Doc ID 2303728.1)

Last updated on JUNE 30, 2023

Applies to:

Oracle SOA Suite - Version 12.1.3.0.0 and later
Integration Cloud Service - Version 16.4.1 and later
Oracle Service Bus - Version 12.1.3.0.0 and later
Oracle WebLogic Server - Version 12.1.3.0.0 and later
Oracle Business Process Management Suite - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Goal

This article explains how to set loggers for any FMW Product that uses ODL logging. We can set loggers using EM or using JMX browser from EM. But when there are a lot of servers and a lot of loggers need to be set, manually updating the loggers requires considerable time. The WLST scripts given in this article should help you setting up the loggers quickly.

For more information on WLST, see:
- Using the WebLogic Scripting Tool (WLST)
- WLST Command Reference for Oracle WebLogic Server

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Instructions
 Sample Code
 1. Script to set runtime loggers to TRACE:32
 2. Script to set runtime loggers to NOTIFICATION:1 (to disable the loggers you have previously set)
 3. Script to set loggers to TRACE:32 and keep the change across restarts (Persistent)
 4. Script to set Persistent loggers to NOTIFICATION:1 (to disable the loggers you have previously set)
 5. Generic Script which contains all four operations
 Sample Output
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.