|
Hi,> Also does anybody knows how to stop [INFO] level messages being posted to catalina.out
We are in a process of upgrading from Tomcat3.2.2 to Tomcat4.1.27. I have a question about logging in Tomcat. I configured server.xml to point context logging to specific file name in logs directory something like:
<Context path="/mydir" docBase="mydir" debug="0"
reloadable="false" crossContext="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="mydir_log." suffix=".txt" logVerbosityLevel="WARNING"
timestamp="true"/> </Context>
I want my System.out.println messages printed from this context go to this file, but it is not the case, they go to general catalina.out.
Tomcat redirects System.out and System.err (see catalina.sh): .. org.apache.catalina.startup.Bootstrap "$@" start \ >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & ..
Alex Pinsky
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.