• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to activate Realm logs in Tomcat 5.5 / 6 ?

 
sylvain caillet
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

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 ?

Thank you all for your help,

Best regards,

Sylvain Caillet
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The log goes to the Tomcat log. There's an extensive (and confusing) section in the Tomcat docs on this log, but I believe that by default it just routes to catalina.out.
 
sylvain caillet
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sylvain caillet
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tim. You were right. FINEST was the good level.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic