On Monday 18 February 2002 03:40, inr wrote:
> Hai all,
>                   How to set the Error Log file for Our Own Web Application
> in Tomcat 5.5

AFAIK you will add a logger entry to your contest entry in the server.xml 
file.

<SERVER.XML EXTRACT>
        <!-- Context for Internal Systems ROOT engine -->
        <Context className="org.apache.catalina.core.StandardContext" i     
                 debug="99"
                 cachingAllowed="true" cookies="true" crossContext="false"
                 charsetMapperClass="org.apache.catalina.util.CharsetMapper"
                 displayName="VIP Internal Systems (Core Engine)" path=""
                 docBase="/srv/www/tomcat5/base/webapps/ROOT"                   
                 privileged="false"
                 mapperClass="org.apache.catalina.core.StandardContextMapper"
                 reloadable="false" swallowOutput="false" useNaming="true"
                 wrapperClass="org.apache.catalina.core.StandardWrapper">
          <Realm className="org.apache.catalina.realm.JDBCRealm"               
                connectionName="some_user"
                 connectionPassword="some_password" debug="99" 
                 driverName="org.postgresql.Driver"
                 connectionURL="jdbc:postgresql://some.host.name:5432/database" 
                 roleNameCol="&quot;_vipRoleName&quot;"
                 userCredCol="&quot;_vipPassword&quot;" 
                 userNameCol="&quot;cAgentName&quot;" 
                 userRoleTable="&quot;_vipRole&quot;"
                 userTable="&quot;_rtblAgents&quot;" validate="true"/>
          <Logger className="org.apache.catalina.logger.FileLogger"
                  directory="logs"  prefix="ROOT_localhost_log." suffix=".txt"
                  timestamp="true"/>
        </Context>
</SERVER.XML EXTRACT>

Obviously changing the defaults where neceesary.

Hopefully this helps.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:    +27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Cabbage, n.:
        A familiar kitchen-garden vegetable about as large and wise as
a man's head.
                -- Ambrose Bierce, "The Devil's Dictionary"

Attachment: pgpYbHqVhARfQ.pgp
Description: PGP signature

Reply via email to