× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all,
How to stop messages like 'ChannelSocket - -server has been restarted or reset 
this connection' from being logged in catalina.out.
I run Apache/Tomcat4.1.27 on AS/400 using ajp13 apache plug-in
I tried to specify verbosity="0" on almost every possible level in server.xml 
(connector, logger, server ...)
Nothing seems to work. 
Thanks,
Alex

-----Original Message-----
From: Alex Pinsky 
Sent: Thursday, October 30, 2003 2:13 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: Logging in Tomcat 4.1.27


Hi Chrisian,
Do you know how to modify catalina.sh to separate System.out and System.err one 
from another...
Thanks,
Alex

-----Original Message-----
From: Christian Geisert [mailto:christian.geisert@xxxxxxxxxxx]
Sent: Thursday, October 30, 2003 1:25 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Logging in Tomcat 4.1.27


Alex Pinsky wrote:
> Hi,
> 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.
 > Also does anybody knows how to stop [INFO] level messages being 
posted to 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 &
..

It really depends how these messages are generated.
If you are using System.out.println  I think the only way is to set 
System.out within your webapp:
System.setOut(new PrintStream(new BufferedOutputStream(new 
FileOutputStream("yourfilename"))));

But if if you're using a logger .. well, configure it accordingly ;-)

> Alex Pinsky

Chrisian

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.