IBM Support

Configuring ODM Logging in Oracle Weblogic

Question & Answer


Question

You need to collect logs for Operational Decision Manager and you are running on Oracle Weblogic. You would like to know how to configure the logging on the Oracle Weblogic Application Server. If you gather this documentation before contacting support it will expedite the troubleshooting process, and save you time.

Answer

Logging for ODM is handled through the Java Common Logging facilities. There are two methods to enable logging in the Decision Center.
  • The first method requires you to modify the EAR file, WAR file and JAR file deployed in order to modify the configuration file within, it is complex and error-prone.
  • The preferred method is to reference the configuration file as a runtime system property. IBM's documentation about logging says to use a -Djava.util.logging.config.file=<file path> statement. The trick for Weblogic is to know where to put it.

1. Create a new logging configuration file
  • Place it in the root of the ODM domain
  • The configuration file creates 2 loggers: one to stdout and one to a file
  • It will put the logging file in the domain directory
  • Choose the appropriate filters and LEVEL for what you are troubleshooting
    handlers= java.util.logging.ConsoleHandler, java.util.logging.FileHandler
    java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    java.util.logging.ConsoleHandler.level = INFO
    java.util.logging.FileHandler.pattern=team-server-%u.log
    java.util.logging.FileHandler.level = FINEST
    java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter.level:INFO
  • Use the trace string(s) provided by the ODM support team. For example, if the support team requested traces with the com.ibm.rules.decisioncenter.deployment trace string, at the FINE level, then use:
    com.ibm.rules.decisioncenter.deployment:FINE
    Valid trace levels are SEVERE, WARNING, INFO, CONFIG, FINE, FINER and FINEST
2. Add the system property so that commons logging will pick up the custom configuration file
  • In the <domain root>/bin/startWebLogic.sh file
  • add the following just after the section that describes the different variables:
  • # See "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    # *************************************************************************

    JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.util.logging.config.file=logging.properties"
    umask 027
    # Call setDomainEnv here.


3. When you restart your WebLogic server, the logging file will be created in your domain's home directory
  • with ALL logging information being sent to it,
  • and INFO-level logging info being sent to STDOUT.
  • You can set WebLogic to log STDOUT messages to the WebLogic configuration by going to the WebLogic Console and clicking on the Environment -> Servers -> <the Decision Center Server> -> Logging, expanding the Advanced section, and checking ‘Redirect stdout logging enabled’

Oracle reference documentation:

http://docs.oracle.com/middleware/1221/wls/WLLOG/logging_services.htm#WLLOG116

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"ARM Category":[{"code":"a8m50000000L1a2AAC","label":"** Other **"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

ODM;Operational Decision Management;Oracle WebLogic, WebLogic

Document Information

Modified date:
20 May 2020

UID

swg21978584