RE: Logging Question
Howdy, >server logs all those messages to TOMCAT_HOME\logs\stderr.log - Really? Not to $CATALINA_HOME/logs/catalina.out? >unfortunately I can't persuaded the remote Tomcat to do same, although both So what is the remote server doing? I would assume it's writing logs on its own machine. Do you want the remote server to write the logs across the network to your machine? Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging Question
Howdy, > >server logs all those messages to TOMCAT_HOME\logs\stderr.log - > > Really? Not to $CATALINA_HOME/logs/catalina.out? yes, really :) > > >unfortunately I can't persuaded the remote Tomcat to do same, although > both > > So what is the remote server doing? I would assume it's writing logs on > its own machine. Do you want the remote server to write the logs across > the network to your machine? No, it fills the localhost_log.DATE.txt, localhost_admin_log.DATE.txt, localhost_examples_log.DATE.txt and the catalina.out but of these contains *my* messages. They are of course written in its own /log dir. I log onto that machine via ssh and can therefore check the logs. Regards Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logging question
Hi, Just adding a Logger is not enough to redirect System.out.println calls to it. You need to add swallowOutput="true" to your Context definition. Or alternatively change the code from using System.out.println to using getServletContext().log(...). Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Scott Pippin [mailto:[EMAIL PROTECTED] >Sent: Monday, November 15, 2004 10:20 AM >To: [EMAIL PROTECTED] >Subject: logging question > >I am trying to send the return values/errors for an application to a >different stdout file. I set up everything but stdout is being >written >to catalina.out. > >server.xml > > > className="org.apache.catalina.mbeans.ServerLifecycleListener" >debug="0" >/> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" >debug="0" /> > /> > type="org.apache.catalina.UserDatabase" description="User database >that >can be updated and saved" /> > > > factory > org.apache.catalina.users.MemoryUserDatabaseFactory > > > pathname > conf/tomcat-users.xml > > > > >maxSpareThreads="75" enableLookups="false" redirectPort="8443" >acceptCount="100" debug="0" connectionTimeout="2" >disableUploadTimeout="true" /> >debug="0" protocol="AJP/1.3" /> > > prefix="catalina_log." suffix=".txt" timestamp="true" /> > connectionName="ims" connectionPassword="ims" >connectionURL="jdbc:mysql://10.131.1.200:3306/ims" >driverName="com.mysql.jdbc.Driver" userTable="imsuser" >userNameCol="userid" userCredCol="passwordid" userRoleTable="imsrole" >roleNameCol="userrole" /> > unpackWARs="true" autoDeploy="true" xmlValidation="false" >xmlNamespaceAware="false"> > directory="logs" prefix="localhost_log." >suffix=".txt" >timestamp="true"/> > > > > > >context.xml under the application/web-INF directory > > > prefix="ims_log." suffix=".txt" timestamp="true" verbosity="4" /> > prefix="ims_err." suffix=".txt" timestamp="true" verbosity="4" /> > prefix="ims_out." suffix=".txt" timestamp="true" verbosity="4" /> > > >Tomcat 5.0.28/Apache2 > >Have I missed something? > >Thanks, > >Scott Pippin >[EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logging question
Hi, Attributes are case-sensitive: it's swallowOutput, not SwallowOutput or another variant. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Scott Pippin [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 23, 2004 3:29 PM >To: [EMAIL PROTECTED] >Subject: logging question > >I am trying to redirect standard out to a different file for a >particular application. I have tried to set up a context.xml file but >everything is still being written to catalina.out. > >server.xml > > > className="org.apache.catalina.mbeans.ServerLifecycleListener" >debug="0"/> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" >debug="0"/> > >value="30"/> > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved"> > > > >factory > >org.apache.catalina.users.MemoryUserDatabaseFactory > > >pathname >conf/tomcat-users.xml > > > > > maxThreads="150" minSpareThreads="25" >maxSpareThreads="75" > enableLookups="false" redirectPort="8443" >acceptCount="100" > debug="0" connectionTimeout="2" > disableUploadTimeout="true" /> > enableLookups="false" redirectPort="8443" debug="0" > protocol="AJP/1.3" /> > >prefix="catalina_log." suffix=".txt" > timestamp="true" swallowOutput="true" /> > connectionName="xxx" connectionPassword="xxx" > connectionURL="jdbc:mysql://x.x.x.x:3306/xxx" >driverName="com.mysql.jdbc.Driver" userTable="imsuser" > userNameCol="userid" userCredCol="passwordid" userRoleTable="imsrole" >roleNameCol="userrole" /> > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > directory="logs" prefix="localhost_log." >suffix=".txt" >timestamp="true" swallowOutput="true" /> > > > > > >context.xml > >docBase="/u1/Apache/tomcat/webapps/IMS"> > directory="logs" prefix="ims_log." suffix=".txt" timestamp="true" >SwallowOutput="true" /> > > >Thanks in Advance, > >Scott Pippin This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]