This line is supposed to keep a track of users who requested for resources (i.e jsp, html, servlet) for updating their account information.
Please tell me where this information is logged.
What I tried so far -
I did not know where this information is actually logged. I thought that it was logged inside tomcat logs folder, so I created a log file and saw that nothing happened to it even after logging into the app and out of it. I used the post - https://stackoverflow.com/questions/2233053/where-can-i-view-tomcat-log-files-in-eclipse
Then, I looked at API for ServletContext#log() and googled tomcat servlet log and got this post - http://stackoverflow.com/questions/3154358/tomcat-servlet-logging
They used log4j, but my book does not mention anything about log4j, so I don't want to use it for now.
Ulf Dittmer wrote:ServletContext.log output should go into one of the log files in TOMCAT_HOME/logs, most likely catalina.out. You should not create any log files, that's done automatically.
Inside eclipse, I don't see catalina.out for my tomcat server. I only see catalina.policy, catalina.properties, server.xml, tomcat-users.xml etc.
Please help me to understand this.
Bear Bibeault wrote:Then stop using eclipse as your run-time environment. Run Tomcat standalone and you'll be much happier.
Yes, I guess I'll just use eclipse to automate the creation of basic project files and move those manually to tomcat and run manually. It will save
me a world of pain.
Ulf Dittmer wrote:So your original problem is solved?
Not really. I used a workaround - log to console. I'll get my web app, jsp, servlet basics right first and then I will learn logging and tomcat in detail.