tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: logging question
Date Tue, 23 Nov 2004 20:34:55 GMT

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:SPippin@mtctrains.com]
>Sent: Tuesday, November 23, 2004 3:29 PM
>To: tomcat-user@jakarta.apache.org
>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
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
>  <Listener
>className="org.apache.catalina.mbeans.ServerLifecycleListener"
>            debug="0"/>
>  <Listener
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>            debug="0"/>
>  <GlobalNamingResources>
>    <Environment name="simpleValue" type="java.lang.Integer"
>value="30"/>
>    <Resource name="UserDatabase" auth="Container"
>              type="org.apache.catalina.UserDatabase"
>       description="User database that can be updated and saved">
>    </Resource>
>    <ResourceParams name="UserDatabase">
>      <parameter>
>        <name>factory</name>
>
><value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
>      </parameter>
>      <parameter>
>        <name>pathname</name>
>        <value>conf/tomcat-users.xml</value>
>      </parameter>
>    </ResourceParams>
>  </GlobalNamingResources>
>  <Service name="Catalina">
>    <Connector port="8080"
>               maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>               enableLookups="false" redirectPort="8443"
>acceptCount="100"
>               debug="0" connectionTimeout="20000"
>               disableUploadTimeout="true" />
>    <Connector port="8009"
>               enableLookups="false" redirectPort="8443" debug="0"
>               protocol="AJP/1.3" />
>    <Engine name="Catalina" defaultHost="localhost" debug="0">
>      <Logger className="org.apache.catalina.logger.FileLogger"
>              prefix="catalina_log." suffix=".txt"
>              timestamp="true" swallowOutput="true" />
> <Realm className="org.apache.catalina.realm.JDBCRealm"
>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" />
>      <Host name="localhost" debug="0" appBase="webapps"
>       unpackWARs="true" autoDeploy="true"
>       xmlValidation="false" xmlNamespaceAware="false">
>        <Logger className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"  prefix="localhost_log."
>suffix=".txt"
>            timestamp="true" swallowOutput="true" />
>      </Host>
>    </Engine>
>  </Service>
></Server>
>
>context.xml
>
><Context path="/IMS" reloadable="true"
>docBase="/u1/Apache/tomcat/webapps/IMS">
> <Logger className="org.apache.catalina.logger.FileLogger"
>directory="logs" prefix="ims_log." suffix=".txt" timestamp="true"
>SwallowOutput="true" />
></Context>
>
>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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message