This post is part of a larger series on Oracle Access Manager 11g called Oracle Access Manager Academy. An index to the entire series with links to each of the separate posts is available.
Logging is extremely helpful when trying to troubleshoot issues and normally when you see instructions to log in OAM 11g there is documentation on using WLST commands with several steps or Enterprise Manager that can be used to set various log levels, but in both cases this can be a bit tedious. Wouldn't it be great if you could just update some file like in the old OAM 10g days using the oblog_config.xml or something similar; see http://docs.oracle.com/cd/E12530_01/oam.1014/b32419/log.htm. Well I am going to give you a little known trick that can provide you this very thing. Welcome to updating the logging.xml file and it does this in real time without any restarts needed to add or remove logging!! Read on....
There is a little known secret where you can update the logging.xml file. The following steps will show you how to add logging that is persistent even if you restart the managed server. NOTE: Now in 11.1.2.2.0 or later in Enterprise Manager there is an option to make logging persistent by using a check box.
This trick may not be for everyone. For example in a production environment there may be security lock downs for good reason to prevent updating or even accessing certain files, so Enterprise Manager still may be the best choice. However for those that may be working in a non-production environment that have access to this configuration file, this trick may be your very best friend. Happy logging!!
I started with Oracle in 2005 and been a member of the Oracle A-Team since 2012 though have worked in Identity and Access Management since 1999. My journey with security continues the cloud that heavily includes Oracle Infrastructure Cloud (OCI). I enjoy writing articles built on real life use cases to help in areas where a standard document may not provide. I am a strong believer in learning by example to which I try to incorporate as many helpful tips, excellent diagrams, and instructional steps as I can.