Set up the logging level for Cohort Explorer

To set the logging level of TRC modules for tracking users and activities within the application:

  1. Execute wlst.sh (or wlst.cmd) in MW_HOME/oracle_common/common/bin, where

    MW_HOME is the home directory of Oracle Middleware.

  2. Connect to the Oracle WebLogic Server.
    connect('username','password','t3://hostname:port_number')
  3. Run in domainRuntime tree, which is required for WLST logging commands.
    domainRuntime()
  4. Set the logging level of oracle.hsgbu.trc with the following command:
    setLogLevel(target='SERVER_NAME', logger='oracle.hsgbu.trc', level='INFO', addLogger=1)

    Where SERVER_NAME is the name of the target server where TrcApp is deployed.

  5. Run the following command to verify the logging level:
    getLogLevel(target='SERVER_NAME', logger='oracle.hsgbu.trc') The following should be displayed: NOTIFICATION:1

    You can update the level to the desired Oracle WebLogic Server logging severity levels mentioned here: https://docs.oracle.com/middleware/12213/wls/WLLOG/logging_services.htm#WLLOG116

This log will be available at the following location <MW_HOME>/user_projects/domains/oh_domain/servers/<managed_server_name>/logs

File name of the log file will be: <managed_server_name>-diagnostic.log