RE: How to set Error Log for Web Application in TOmcat 5.5

2004-11-22 Thread Shapira, Yoav

Hi,
Not only does this NOT help, it hurts ;)  Please be careful to not to
post Tomcat 5.0 (or 4.x, or 3.x) configuration files for a Tomcat 5.5
question, or the other way around.  We have enough confused newbies as
it is ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 2:52 AM
To: Tomcat Users List
Subject: Re: How to set Error Log for Web Application in TOmcat 5.5

hi,

   Here is a sample of my tomcat server.xml file. Hope it will be help
ful to you

 Host name=example.com debug=0 appBase=example.com
   unpackWARs=true
autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs/www.example.com/access
prefix=example_com. suffix=.txt
 pattern=common
resolveHosts=false/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs/example.com/fileLogger
prefix=example_com. suffix=.txt
timestamp=true/


!-- Tomcat Root Context
--

  Context path= docBase=ROOT debug=0 reloadable=true
Resources
className=org.apache.naming.resources.FileDirContext
allowLinking=true docBase= /
  /Context
/Host

inr wrote:

Hai all,
  How to set the Error Log file for Our Own Web
Application
in Tomcat 5.5

Thanks
inr


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: How to set Error Log for Web Application in TOmcat 5.5

2004-11-21 Thread Sarath PS
hi,
  Here is a sample of my tomcat server.xml file. Hope it will be help 
ful to you

Host name=example.com debug=0 appBase=example.com
  unpackWARs=true 
autoDeploy=true

   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs/www.example.com/access  
prefix=example_com. suffix=.txt
pattern=common 
resolveHosts=false/

   Logger className=org.apache.catalina.logger.FileLogger
directory=logs/example.com/fileLogger  
prefix=example_com. suffix=.txt
   timestamp=true/  


   !-- Tomcat Root Context 
--   

 Context path= docBase=ROOT debug=0 reloadable=true
   Resources className=org.apache.naming.resources.FileDirContext
   allowLinking=true docBase= /
 /Context  
/Host

inr wrote:
Hai all,
 How to set the Error Log file for Our Own Web Application
in Tomcat 5.5
Thanks
inr
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to set Error Log for Web Application in TOmcat 5.5

2004-11-20 Thread Quinton Delpeche
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;_vipRoleNamequot;
 userCredCol=quot;_vipPasswordquot; 
 userNameCol=quot;cAgentNamequot; 
 userRoleTable=quot;_vipRolequot;
 userTable=quot;_rtblAgentsquot; 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


pgpYbHqVhARfQ.pgp
Description: PGP signature


RE: How to set Error Log for Web Application in TOmcat 5.5

2004-11-20 Thread Allistair Crossley
no you can't add a Logger to your Context in 5.5 they are removed. for per-web 
application logging you will need to use a log4j configuration in each of your 
web applications.
 
this information will become available on Tomcat 5.5's logging documentation 
page when the tomcat site is next built as I have submitted information about 
this (not sure when this will be though), but essentially you cannot rely on 
tomcat for per-web application logging assistance any longer.
 
cheers, Allistair.

-Original Message- 
From: Quinton Delpeche [mailto:[EMAIL PROTECTED] 
Sent: Sat 20/11/2004 13:43 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: How to set Error Log for Web Application in TOmcat 5.5





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT