Where are Tomcat log files generated when running Tomcat under IDEA?
I am running Tomcat (5.5) under IDEA (5.1.2) on Linux. Things are set up in IDEA so that Tomcat only runs when I run the web app. I don't see where the normal Tomcat log files are generated... apparently not under /CATALINA_HOME/logs. The files there haven't been modified since before I started running Tomcat under IDEA.
Can anyone tell me where the ordinary tomcat logging info goes?
Thanks in advance, and sorry for the relatively newbie question...
Mark
Please sign in to leave a comment.
While IntelliJ is bringing up tomcat you get some deployment information logged to the screen. On my system it looks like this:
md /c C:\usr\local\tomcat\apache-tomcat-5.5.17\bin\catalina.bat run
Using CATALINA_BASE: C:\Documents and Settings\aguther\.IntelliJIdea50\system\tomcat_Tomcat_5_5_17_244ef11
Using CATALINA_HOME: C:\usr\local\tomcat\apache-tomcat-5.5.17
Using CATALINA_TMPDIR: C:\usr\local\tomcat\apache-tomcat-5.5.17\temp
Using JRE_HOME: C:\usr\local\Java\jdk1.5.0_07
The second line tells you where IntelliJ deploys the actual tomcat files. the logfiles are located under that folder, in my example under C:\Documents and Settings\aguther\.IntelliJIdea50\system\tomcat_Tomcat_5_5_17_244ef11\logs
Thanks very much Andreas,
I suppose I should have paid attention to the things IDEA was telling me...
By the way, when I run Tomcat under IDEA, the log files are kept in a logs directory under CATALINA_BASE, not under CATALINA_HOME. CATALINA_HOME/logs is where my Tomcat log files are usually kept, and where I had expected the logging to go.
Cheers,
Mark
Andreas,
Please disregard the remark at the end of my previous post. I had mis-read what you said; what you said was exactly right in my case as well.
Sorry for my confusion. I think I'll go find a place to hide for awhile, till my embarrassment subsides.
Anyway, again, thanks for your help;
Mark
I'm using a Mac
I found my log files by searching in my /Applications directory and then more successfully in my home directory. I found them here:
./Library/Caches/IntelliJIdea11/tomcat/Unnamed_hydra-parent_2/logs/catalina.2012-06-27.log
Where hydra_parent is my app
Hope that helps anyone else searching for their logs