I use JDBC realm with a form to manage my web portal's accesses. But for debugging purpose, I would like to activate the logs of Realm authenticate processes.
To be more precise : If you have a look to the RealmBase.java class, it begins by getting a Log object from a LogFactory. And then it writes many interesting debugging informations to it. But how to activate this log file ?
sylvain caillet wrote:Thank you Tim for your reply,
I have tried many things in the server.xml (activate some valves), in the logging.properties but anyway, always unable to get any log from the Realm, even in the catalina.out.
Have you set up logging in the logging.properties file for the java.util.logging facilitiy of the JVM? In particular, have you set up the minimum reported loglevel to one of the more detailed levels like FINER? You have to do this in 2 places - once for logging in general, and once for the log destination. That's because you can have multiple log destinations and not all of them may need to receive debugging messages.
Joined: Jan 15, 2010
Thank you Tim. You were right. FINEST was the good level.
subject: How to activate Realm logs in Tomcat 5.5 / 6 ?