Wednesday, December 14, 2016

Enable TRACE logging in WebLogic Server


1. Set the environment
cd /u01/app/oracle/middleware/oracle_common/common/bin 
./setWlstEnv.sh 
./wlst.sh

2. WLST connect
connect('weblogic','welcome1','t3://localhost:7001') 
domainRuntime()

3. WLST get log level information
getLogLevel(target='oam_server1',logger='oracle.oam') 
getLogLevel(target='oam_server2',logger='oracle.oam') 
listLoggers(pattern="oracle.oam.*") 
listLoggers(target='oam_server1')
4. WLST set log levels
setLogLevel(target='oam_server1',logger='oracle.oam',level='TRACE:32',persist="0",addLogger=1) 
setLogLevel(target='oam_server1',logger='oracle.oam',level='WARNING',persist="0",addLogger=1)

5. Exit
exit()

References
  
Applicable Versions
  • Oracle WebLogic Server 11g (10.3.6)

 

No comments: