OAM Server Diagnostics Logging - Never so easy................ That's a myth now... ;-)
To capture OAM Server logs for diagnosis, we now just need to add few logger statement in logging.xml.
Important Point to note here is that NO SERVER RESTART IS REQUIRED ...........!!!!!!!
So first question that strikes where is this logging.xml is placed?
Ans - It is present in the weblogic server domains directory, like/scratch/ckukreja/Oracle/Middleware/user_projects/domains/base_domain/config/fmwconfig/servers/wls_oam1/logging.xml
Note: My domain name is "base_domain" and oam server name is "wls_oam1"
Next question, why we need to see the OAM Server diagnostics?
Ans - It will help us to analyze the flow, like when webgate sends the IsRescProtected() NAP Call, in that case whether server is getting it or not. We can find it in the server logs. Moreover we can track that server thread, that what else operations it is performing. Whether sending success to webgate or failure. Or raising exception for performed operation.All this can be very helpful while debugging an issue.
Now what logger statement need to be added?
Ans - Following are the logs statement need to be added:<logger name='oracle.oam' level='TRACE:32'/>
<logger name='oracle.security.am' level='TRACE:32'/>
<logger name='oracle.oam.engine.policy' level='TRACE:32'/>
<logger name='oracle.oam.engine.session' level='TRACE:32'/>
<logger name='oracle.oam.engine.sso' level='TRACE:32'/>
<logger name='oracle.oam.engine.authz' level='TRACE:32'/>
Where to place the above snippet in the logging.xml?
Ans - You will find a statement "logger name='' level='ERROR:1'" in the file, place it just after its block.<logger name='' level='ERROR:1'>
<handler name='odl-handler'/>
<handler name='wls-domain'/>
<handler name='console-handler'/>
</logger>
<logger name='oracle.oam' level='TRACE:32'/>
<logger name='oracle.security.am' level='TRACE:32'/>
<logger name='oracle.oam.engine.policy' level='TRACE:32'/>
<logger name='oracle.oam.engine.session' level='TRACE:32'/>
<logger name='oracle.oam.engine.sso' level='TRACE:32'/>
<logger name='oracle.oam.engine.authz' level='TRACE:32'/>
Note: I have enabled the logs in TRACE level 32
Important Point to note here is that NO SERVER RESTART IS REQUIRED ...........!!!!!!!!
For more info related to logging, reference the below link:http://www.ateam-oracle.com/logging-made-easy-in-oam-11g-with-this-simple-trick/
Enjoy :-)