Reputation: 810
Im using security manager in my tomcat. I need all the consol logs to be written in the tomcat.log file. Fo this im using this cmd
catalina start -security > tomcat.log
But the log not goes to tomcat.log rather it is again writing in console only.
How can i write this log into a separate file?
Upvotes: 1
Views: 471
Reputation: 338
Check out your catalina.out file. By default logs are redirected to $CATALINA_BASE/logs/catalina.out file. To override default configuration ,you can set Tomcat environment variables CATALINA_OUT in setenv.sh which is full path to the file where stdout and stderr will be redirected.
Upvotes: 1