RE: Logging of illegal requests from Tomcat 5

2005-08-23 Thread Marius Hanganu
You could log all requests using the access log valve:

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common resolveHosts=false/

(more about at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/printer/valve.htm
l)

And then filter the log file searching for the illegal requests.

Regards,
Marius

-Original Message-
From: Dariusz [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 22, 2005 11:40 PM
To: tomcat-user@jakarta.apache.org
Subject: Logging of illegal requests from Tomcat 5

Hi,

I am trying to log all illegal requests from Tomcat 5.  By illegal
requests I mean those that have return status code other than 200, i.e..
404 (Page Not Found)
403 (Forbidden), 408 (Request Timeout).  I am using log4j 1.2.9.
I display a custom error page for the above status codes and should be
able to create a custom error jsp page that will log those requests, but
there must be a better way of doing this.
Thanks.

--Dariusz.



-
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: logging tomcat 5.5

2005-08-23 Thread Remy Maucherat
On 8/23/05, Alain Gaeremynck [EMAIL PROTECTED] wrote:
 I read the doc and found out that in tomcat 5.5 we are suppose to use
 log 4 j to handle getServletContext.log.  However i rather liked the old
 ways  Is it stil supported?
 
 if i put this in my context
 
 Logger className=org.apache.catalina.logger.FileLogger
   prefix=servlet. suffix=.log timestamp=true /
 
 will it still work?

No, it's not supported anymore. You can look at your logging options here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: logging tomcat 5.5

2005-08-23 Thread Alain Gaeremynck
thanks for the info.  I ws afraid of that but i wanted to make sure  
 sigh ***


Remy Maucherat wrote:


On 8/23/05, Alain Gaeremynck [EMAIL PROTECTED] wrote:
 


I read the doc and found out that in tomcat 5.5 we are suppose to use
log 4 j to handle getServletContext.log.  However i rather liked the old
ways  Is it stil supported?

if i put this in my context

Logger className=org.apache.catalina.logger.FileLogger
 prefix=servlet. suffix=.log timestamp=true /

will it still work?
   



No, it's not supported anymore. You can look at your logging options here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

 



--
Alain Gaeremynck
CTO Le Groupe Interstructure
(514) 374-1110
(514) 825-7810 cell
weblog: http://www.sanssucre.ca
(En informatique, comme en musique, n'importe quoi sauf du commercial)



RE: logging tomcat 5.5

2005-08-23 Thread Allistair Crossley
actually you don't *have* to use log4j, since 5.5.8/9 tomcat has shipped with a 
customised jdk logging configuration (juli) that sets up a localhost log for 
you out of the box

 -Original Message-
 From: Alain Gaeremynck [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2005 16:09
 To: Tomcat Users List
 Subject: logging tomcat 5.5
 
 
 I read the doc and found out that in tomcat 5.5 we are suppose to use 
 log 4 j to handle getServletContext.log.  However i rather 
 liked the old 
 ways  Is it stil supported? 
 
 if i put this in my context
 
 Logger className=org.apache.catalina.logger.FileLogger
   prefix=servlet. suffix=.log timestamp=true /
 
 will it still work?
 
 -- 
 Alain Gaeremynck
 CTO Le Groupe Interstructure
 (514) 374-1110
 (514) 825-7810 cell
 weblog: http://www.sanssucre.ca
 (En informatique, comme en musique, n'importe quoi sauf du commercial)
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Don't confuse not understanding with not sufficient. The instructions do 
lead to a correct configuration. However, here it is more explicitly.

Allistair.

Per-webapp logging
==

1. Add log4j's jar to both your webapp's WEB-INF/lib folders
2. Add log4j.properties to both your webapp's WEB-INF/classes folders. 
*Minimally*, add

log4j.rootCategory=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

to those log4j.properties files changing the File path appropriately.

Ideally you will pick up the log4j manual and create appenders that map to 
packages.

Tomcat logging with log4j
=

I've found the best way is

1. Add log4j jar to common/lib, add commons-logging.jar to common/lib
2. Add log4j.properties to common/classes with content

log4j.rootCategory=error, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

log4j.logger.org.apache.commons.modeler=INFO, R
log4j.logger.org.apache.tomcat.util.digester=ERROR, R
log4j.logger.org.apache.catalina.loader=INFO, R
log4j.logger.org.apache.catalina.session=INFO, R
log4j.logger.org.apache.catalina=DEBUG, R
log4j.logger.org.apache.commons.digester=INFO, R
log4j.logger.org.apache.commons.beanutils=INFO, R
log4j.logger.org.apache.jasper=INFO, R
log4j.additivity.org.apache.catalina=false

Tomcat logging per-webapp
=

Add to your webapp's log4j.properties files

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG,
 R 

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: 02 August 2005 14:22
 To: tomcat-user@jakarta.apache.org
 Subject: Logging With Tomcat 5.5
 
 
 Hello,
 
 I am sure this topic has been beaten to death, but I am 
 having trouble understanding how the Log4J works, and how I 
 can configure it on my localbox.
 
 First off, I am running Tomcat 5.5 and I have created two 
 webapp contexts. One is a dev site, and the other is a 
 production site. I am using struts (I don't think it matters).
 
 I would to be able to have two sets of rolling logs. One for 
 dev, and the other for production. I am trying to decipher 
 the readme at 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html;
  but I am not truly sure if this is for all webapps, or what 
 this is implying.
 
 I would like to get all Tomcat messages (errors, etc) and my 
 actual logging all in either one or two files per webapp.
 
 
 Can someone please assist me in this? The readme just doesn't 
 cut it, or I am interpreting it wrongly. Or maybe there is an 
 example setup somewhere.
 
 Any info would be appreciated.
 Sincerely
 Scott
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Logging With Tomcat 5.5

2005-08-02 Thread Scott Purcell
Allistair,

That last instruction
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG,
 R 

What do I change the [Catalina] value to?
and that does go into the log4j.properties file under the webapp?

Thanks,
Scott







-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 02, 2005 8:31 AM
To: Tomcat Users List
Subject: RE: Logging With Tomcat 5.5


Don't confuse not understanding with not sufficient. The instructions do 
lead to a correct configuration. However, here it is more explicitly.

Allistair.

Per-webapp logging
==

1. Add log4j's jar to both your webapp's WEB-INF/lib folders
2. Add log4j.properties to both your webapp's WEB-INF/classes folders. 
*Minimally*, add

log4j.rootCategory=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

to those log4j.properties files changing the File path appropriately.

Ideally you will pick up the log4j manual and create appenders that map to 
packages.

Tomcat logging with log4j
=

I've found the best way is

1. Add log4j jar to common/lib, add commons-logging.jar to common/lib
2. Add log4j.properties to common/classes with content

log4j.rootCategory=error, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n

log4j.logger.org.apache.commons.modeler=INFO, R
log4j.logger.org.apache.tomcat.util.digester=ERROR, R
log4j.logger.org.apache.catalina.loader=INFO, R
log4j.logger.org.apache.catalina.session=INFO, R
log4j.logger.org.apache.catalina=DEBUG, R
log4j.logger.org.apache.commons.digester=INFO, R
log4j.logger.org.apache.commons.beanutils=INFO, R
log4j.logger.org.apache.jasper=INFO, R
log4j.additivity.org.apache.catalina=false

Tomcat logging per-webapp
=

Add to your webapp's log4j.properties files

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG,
 R 

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: 02 August 2005 14:22
 To: tomcat-user@jakarta.apache.org
 Subject: Logging With Tomcat 5.5
 
 
 Hello,
 
 I am sure this topic has been beaten to death, but I am 
 having trouble understanding how the Log4J works, and how I 
 can configure it on my localbox.
 
 First off, I am running Tomcat 5.5 and I have created two 
 webapp contexts. One is a dev site, and the other is a 
 production site. I am using struts (I don't think it matters).
 
 I would to be able to have two sets of rolling logs. One for 
 dev, and the other for production. I am trying to decipher 
 the readme at 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html;
  but I am not truly sure if this is for all webapps, or what 
 this is implying.
 
 I would like to get all Tomcat messages (errors, etc) and my 
 actual logging all in either one or two files per webapp.
 
 
 Can someone please assist me in this? The readme just doesn't 
 cut it, or I am interpreting it wrongly. Or maybe there is an 
 example setup somewhere.
 
 Any info would be appreciated.
 Sincerely
 Scott
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Hi,

You don't change Catalina (for most purposes). Just change end part /webappname 
to your web application name, and yes, add it into the web application's log4j. 
E.g if your webapp was called banana

You would add (in addition to the root logger etc..) into 
webapps/banana/WEB-INF/classes/log4j.properties

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/banana]=DEBUG,
 R

Allistair.

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: 02 August 2005 14:49
 To: Tomcat Users List
 Subject: RE: Logging With Tomcat 5.5
 
 
 Allistair,
 
 That last instruction
 log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina
 ].[localhost][/webappname]=DEBUG, R 
 
 What do I change the [Catalina] value to?
 and that does go into the log4j.properties file under the webapp?
 
 Thanks,
 Scott
 
 
 
 
 
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 02, 2005 8:31 AM
 To: Tomcat Users List
 Subject: RE: Logging With Tomcat 5.5
 
 
 Don't confuse not understanding with not sufficient. The 
 instructions do lead to a correct configuration. However, 
 here it is more explicitly.
 
 Allistair.
 
 Per-webapp logging
 ==
 
 1. Add log4j's jar to both your webapp's WEB-INF/lib folders
 2. Add log4j.properties to both your webapp's WEB-INF/classes 
 folders. *Minimally*, add
 
 log4j.rootCategory=debug, R
 log4j.appender.R=org.apache.log4j.RollingFileAppender
 log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log
 log4j.appender.R.MaxFileSize=1500KB
 log4j.appender.R.MaxBackupIndex=1
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
 
 to those log4j.properties files changing the File path appropriately.
 
 Ideally you will pick up the log4j manual and create 
 appenders that map to packages.
 
 Tomcat logging with log4j
 =
 
 I've found the best way is
 
 1. Add log4j jar to common/lib, add commons-logging.jar to common/lib
 2. Add log4j.properties to common/classes with content
 
 log4j.rootCategory=error, R
 log4j.appender.R=org.apache.log4j.RollingFileAppender
 log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log
 log4j.appender.R.MaxFileSize=1500KB
 log4j.appender.R.MaxBackupIndex=1
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
 
 log4j.logger.org.apache.commons.modeler=INFO, R
 log4j.logger.org.apache.tomcat.util.digester=ERROR, R
 log4j.logger.org.apache.catalina.loader=INFO, R
 log4j.logger.org.apache.catalina.session=INFO, R
 log4j.logger.org.apache.catalina=DEBUG, R
 log4j.logger.org.apache.commons.digester=INFO, R
 log4j.logger.org.apache.commons.beanutils=INFO, R
 log4j.logger.org.apache.jasper=INFO, R
 log4j.additivity.org.apache.catalina=false
 
 Tomcat logging per-webapp
 =
 
 Add to your webapp's log4j.properties files
 
 log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina]
 .[localhost][/webappname]=DEBUG, R 
 
  -Original Message-
  From: Scott Purcell [mailto:[EMAIL PROTECTED]
  Sent: 02 August 2005 14:22
  To: tomcat-user@jakarta.apache.org
  Subject: Logging With Tomcat 5.5
  
  
  Hello,
  
  I am sure this topic has been beaten to death, but I am 
  having trouble understanding how the Log4J works, and how I 
  can configure it on my localbox.
  
  First off, I am running Tomcat 5.5 and I have created two 
  webapp contexts. One is a dev site, and the other is a 
  production site. I am using struts (I don't think it matters).
  
  I would to be able to have two sets of rolling logs. One for 
  dev, and the other for production. I am trying to decipher 
  the readme at 
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html;
   but I am not truly sure if this is for all webapps, or what 
  this is implying.
  
  I would like to get all Tomcat messages (errors, etc) and my 
  actual logging all in either one or two files per webapp.
  
  
  Can someone please assist me in this? The readme just doesn't 
  cut it, or I am interpreting it wrongly. Or maybe there is an 
  example setup somewhere.
  
  Any info would be appreciated.
  Sincerely
  Scott
  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-05 Thread Daniel Fanjul
No, you have to put each application log4j.xml in each WEB-INF/classes or 
WEB-INF/lib (in a jar)
 The first time you declare a Logger in your app, log4j.xml is searched in 
the ClassLoader; but, I don´t know why (maybe some log4j initialization 
static code), some log4j class is loaded by the Tomcat's Common ClassLoader, 
not by your WebappX classloader.
Because of this, log4j.lib must be in the common dir.
 The log4j.xml is loaded by the WebappX, so each application may have its 
own log4j.xml. Each time you redeploy an application, the log4j.xml is 
searched again.
   2005/7/4, Peter Verhoye [EMAIL PROTECTED]: 
 
  log4j lib must bin in the Tomcat's common/lib
 
 There are multiple webapps deployed on the server. Will adding log4j to
 common/lib not activate log for all of them?
 
 BB
 Peter
 
 
 
  2005/7/4, Anoop kumar V [EMAIL PROTECTED]:
 
 A log4j mailing list might give u a more effective answer
 
 Try and change the appender to be ConsoleAppender (please check the
 name) - see if the output displays on the tomcat console.Then u can
 debug from there...
 
 HTH,
 Anoop
 
 On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote:
 
 Hi all,
 
 I must be getting stupid or so but the logging in my webapp doesn't 
 work
 anymore.
 
 I've the log4j.properties file in WEB-INF/classes
 log4j.jar is in WEB-INF/lib
 
 My properties are:
 #
 # Configures Log4j as the Tomcat system logger
 #
 
 #
 # Configure the logger to output info level messages into a rolling log
 file.
 #
 log4j.rootLogger=DEBUG, R
 
 #
 # Configuration for a rolling log file (tomcat.log).
 #
 log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.R.DatePattern='.'-MM-dd
 #
 # Edit the next line to point to your logs directory.
 # The last part of the name is the log file name.
 #
 
 log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 #
 # Print the date in ISO 8601 format
 #
 log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
 
 I don't see the tomcat.log file anywhere :(
 
 Someone has any idea?
 
 BB
 Peter
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 Thanks and best regards,
 Anoop
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 --
 Peter Verhoye
 
 Synergetic Solutions nv 
 (www.synergetic-solutions.behttp://www.synergetic-solutions.be
 )
 Crystal Palace
 Paalstraat 14
 B-1080 Brussel
 Tel : +32 (0)2 219.10.12
 Fax : +32 (0)2 219.40.28
 GSM : +32 (0)475 60.12.61
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Anoop kumar V
A log4j mailing list might give u a more effective answer

Try and change the appender to be ConsoleAppender (please check the
name) - see if the output displays on the tomcat console.Then u can
debug from there...

HTH,
Anoop

On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote:
 Hi all,
 
 I must be getting stupid or so but the logging in my webapp doesn't work
 anymore.
 
 I've the log4j.properties file in WEB-INF/classes
 log4j.jar is in WEB-INF/lib
 
 My properties are:
 #
 # Configures Log4j as the Tomcat system logger
 #
 
 #
 # Configure the logger to output info level messages into a rolling log
 file.
 #
 log4j.rootLogger=DEBUG, R
 
 #
 # Configuration for a rolling log file (tomcat.log).
 #
 log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.R.DatePattern='.'-MM-dd
 #
 # Edit the next line to point to your logs directory.
 # The last part of the name is the log file name.
 #
 log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 #
 # Print the date in ISO 8601 format
 #
 log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
 
 I don't see the tomcat.log file anywhere :(
 
 Someone has any idea?
 
 BB
 Peter
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

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



Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Daniel Fanjul
log4j lib must bin in the Tomcat's common/lib 


 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: 
 
 A log4j mailing list might give u a more effective answer
 
 Try and change the appender to be ConsoleAppender (please check the
 name) - see if the output displays on the tomcat console.Then u can
 debug from there...
 
 HTH,
 Anoop
 
 On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote:
  Hi all,
 
  I must be getting stupid or so but the logging in my webapp doesn't work
  anymore.
 
  I've the log4j.properties file in WEB-INF/classes
  log4j.jar is in WEB-INF/lib
 
  My properties are:
  #
  # Configures Log4j as the Tomcat system logger
  #
 
  #
  # Configure the logger to output info level messages into a rolling log
  file.
  #
  log4j.rootLogger=DEBUG, R
 
  #
  # Configuration for a rolling log file (tomcat.log).
  #
  log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.R.DatePattern='.'-MM-dd
  #
  # Edit the next line to point to your logs directory.
  # The last part of the name is the log file name.
  #
  log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  #
  # Print the date in ISO 8601 format
  #
  log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
 
  I don't see the tomcat.log file anywhere :(
 
  Someone has any idea?
 
  BB
  Peter
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 Thanks and best regards,
 Anoop
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread devisch . w

Can you delete me of the mailingList please!!!




Wouter



   
  Anoop kumar V 
   
  [EMAIL PROTECTED] To:  Tomcat Users List 
tomcat-user@jakarta.apache.org,
  il.com  [EMAIL PROTECTED]
   
   cc:  
   
  04/07/2005 16:54 Subject: Re: Logging (Log4J) 
with Tomcat 4.1.x  
  Please respond
   
  to Tomcat Users  
   
  List 
   

   

   




A log4j mailing list might give u a more effective answer

Try and change the appender to be ConsoleAppender (please check the
name) - see if the output displays on the tomcat console.Then u can
debug from there...

HTH,
Anoop

On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote:
 Hi all,

 I must be getting stupid or so but the logging in my webapp doesn't work
 anymore.

 I've the log4j.properties file in WEB-INF/classes
 log4j.jar is in WEB-INF/lib

 My properties are:
 #
 # Configures Log4j as the Tomcat system logger
 #

 #
 # Configure the logger to output info level messages into a rolling log
 file.
 #
 log4j.rootLogger=DEBUG, R

 #
 # Configuration for a rolling log file (tomcat.log).
 #
 log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
 log4j.appender.R.DatePattern='.'-MM-dd
 #
 # Edit the next line to point to your logs directory.
 # The last part of the name is the log file name.
 #
 log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
 log4j.appender.R.layout=org.apache.log4j.PatternLayout
 #
 # Print the date in ISO 8601 format
 #
 log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

 I don't see the tomcat.log file anywhere :(

 Someone has any idea?

 BB
 Peter


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




--
Thanks and best regards,
Anoop

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




Daikin Europe NV
Zandvoordestraat 300
8400 Oostende
Belgium
Tel : (+32) 59 / 55 81 11
Fax : (+32) 59 / 55 88 99
http://www.daikineurope.com

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



Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Peter Verhoye
log4j lib must bin in the Tomcat's common/lib 


There are multiple webapps deployed on the server. Will adding log4j to 
common/lib not activate log for all of them?


BB
Peter




 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: 


A log4j mailing list might give u a more effective answer

Try and change the appender to be ConsoleAppender (please check the
name) - see if the output displays on the tomcat console.Then u can
debug from there...

HTH,
Anoop

On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote:


Hi all,

I must be getting stupid or so but the logging in my webapp doesn't work
anymore.

I've the log4j.properties file in WEB-INF/classes
log4j.jar is in WEB-INF/lib

My properties are:
#
# Configures Log4j as the Tomcat system logger
#

#
# Configure the logger to output info level messages into a rolling log
file.
#
log4j.rootLogger=DEBUG, R

#
# Configuration for a rolling log file (tomcat.log).
#
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'-MM-dd
#
# Edit the next line to point to your logs directory.
# The last part of the name is the log file name.
#
log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
#
# Print the date in ISO 8601 format
#
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

I don't see the tomcat.log file anywhere :(

Someone has any idea?

BB
Peter


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




--
Thanks and best regards,
Anoop

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







--
Peter Verhoye

Synergetic Solutions nv (www.synergetic-solutions.be)
Crystal Palace
Paalstraat 14
B-1080 Brussel
Tel : +32 (0)2 219.10.12
Fax : +32 (0)2 219.40.28
GSM : +32 (0)475 60.12.61


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



Re: Logging Server Responses

2005-06-09 Thread TK
Is the time recorded (using %D) includes time taken for
middleware/application server and database processings?


On 6/7/05, Tim Funk [EMAIL PROTECTED] wrote:
 See
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
 
 In particular:
 %D - Time taken to process the request, in millis
 %T - Time taken to process the request, in seconds
 
 Otherwise use a filter and rely on:
 %{xxx}r
 
 -Tim
 
 TK wrote:
 
  Hi,
  I'm looking for ways to log server (Tomcat) responses so that I could
  figure out the time taken (in ms) for Tomcat to process a client
  request. The information I need to record include:
 
  1. Request ID (e.g. client IP address and object requested),
  2. Date and time (in ms) the request is received,
  3. Date and time (in ms) the corresponding response is sent.
 
 
 -
 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: Logging Server Responses

2005-06-09 Thread Tim Funk
Its the time for Servlet.service(...) to be processed. [Which includes any 
middleware/application server and database processings]


-Tim

TK wrote:

Is the time recorded (using %D) includes time taken for
middleware/application server and database processings?


On 6/7/05, Tim Funk [EMAIL PROTECTED] wrote:


See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html

In particular:
%D - Time taken to process the request, in millis
%T - Time taken to process the request, in seconds

Otherwise use a filter and rely on:
%{xxx}r

-Tim

TK wrote:



Hi,
I'm looking for ways to log server (Tomcat) responses so that I could
figure out the time taken (in ms) for Tomcat to process a client
request. The information I need to record include:

1. Request ID (e.g. client IP address and object requested),
2. Date and time (in ms) the request is received,
3. Date and time (in ms) the corresponding response is sent.



-
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]





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



Re: Logging Server Responses

2005-06-09 Thread Mario Ivankovits

And - I think - partially the time taken to send back the response.
Its the time for Servlet.service(...) to be processed. [Which includes 
any middleware/application server and database processings]

Is the time recorded (using %D) includes time taken for
middleware/application server and database processings?


---
Mario


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



Re: Logging Server Responses

2005-06-07 Thread Tim Funk
See 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html


In particular:
%D - Time taken to process the request, in millis
%T - Time taken to process the request, in seconds

Otherwise use a filter and rely on:
%{xxx}r

-Tim

TK wrote:


Hi,
I'm looking for ways to log server (Tomcat) responses so that I could
figure out the time taken (in ms) for Tomcat to process a client
request. The information I need to record include:

1. Request ID (e.g. client IP address and object requested),
2. Date and time (in ms) the request is received, 
3. Date and time (in ms) the corresponding response is sent.




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



Re: Logging the HTTP headers

2005-06-03 Thread Markus Schönhaber
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
 Hello all

 Is there any posibility of logging the HTTP headers ?

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve

Regards
  mks

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



Re: Logging the HTTP headers

2005-06-03 Thread Anto Paul
On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
 Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
  Hello all
 
  Is there any posibility of logging the HTTP headers ?
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve

 
What about a Filter ?

-- 
rgds
Anto Paul

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



Re: Logging the HTTP headers

2005-06-03 Thread Markus Schönhaber
Am Freitag, 3. Juni 2005 11:46 schrieb Anto Paul:
 On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
  Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
   Hello all
  
   Is there any posibility of logging the HTTP headers ?
 
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request
 %20Dumper%20Valve

 What about a Filter ?

Yeah, what about it?

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



Re: Logging into rational database....

2005-05-27 Thread Tim Funk
IIRC - there is a JDBCAccessLogValve - You may need to check the javadocs on 
its use.


-Tim

David wrote:

Hallo,

 


I have sent this question yesterday but nobody responded. It's a short
question so please send me some information.

 


Is it possible to configure tomcat to log the access log into a rational
database? Is there an existing tutorial?

 



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



RE: Logging into rational database....

2005-05-27 Thread Steve Kirk

I think there is a DBCP logger, but this is for the Java code logging
statements, rather than for the access log AFAIK.

Can't remember where I read this.  Probably on the TC site, try starting
here: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html 

 -Original Message-
 From: David [mailto:[EMAIL PROTECTED] 
 Sent: Friday 27 May 2005 12:14
 To: tomcat-user@jakarta.apache.org
 Subject: Logging into rational database
 
 
 Hallo,
 
  
 
 I have sent this question yesterday but nobody responded. It's a short
 question so please send me some information.
 
  
 
 Is it possible to configure tomcat to log the access log into 
 a rational
 database? Is there an existing tutorial?
 
  
 
 Thanks
 
  
 
 David
 
 



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



Re: Logging into rational database....

2005-05-27 Thread Anto Paul
On 5/27/05, David [EMAIL PROTECTED] wrote:
 Hallo,
 
 
 
 I have sent this question yesterday but nobody responded. It's a short
 question so please send me some information.
 
 
 
 Is it possible to configure tomcat to log the access log into a rational
 database? Is there an existing tutorial?
 
 
 
 Thanks
 
 
 
 David
 
 
 

Log4J can do that. Tomcat will use Log4J if it is configured. Search
in the archives to learn how to configure it.

-- 
rgds
Anto Paul

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



RE: Logging into rational database....

2005-05-27 Thread Serlet Jean-Claude
Hello

Use a Valve component and use the class named JDBCaccessLogValve
Here is an useful URL
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache
/catalina/valves/JDBCAccessLogValve.html


Jean-Claude
-Message d'origine-
De : David [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 27 mai 2005 13:14
À : tomcat-user@jakarta.apache.org
Objet : Logging into rational database


Hallo,

 

I have sent this question yesterday but nobody responded. It's a short
question so please send me some information.

 

Is it possible to configure tomcat to log the access log into a rational
database? Is there an existing tutorial?

 

Thanks

 

David


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



Re: logging to seperate log file per war file

2005-04-12 Thread Jonathan Eric Miller
My guess (but, I'm not a Tomcat developer so what do I know! ;-)) is that 
you can't do it for System.out.println(). However, I did notice that 
System.setOut() allows you to redirect where standard out goes. However, I'm 
guessing that that would be for the entire JVM? As of Tomcat 5.5.9 they 
fixed up java.util.logging so that it can have different log files if that's 
any consolation. I guess the best solution is to simply using the logging 
APIs throughout and not use System.out for anything.

Jon
- Original Message - 
From: quentin.compson [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 11, 2005 10:12 PM
Subject: logging to seperate log file per war file


is this possible using context.xml or some other way?  im using log4j but 
some
output still goes to stdout (e.g System.out.println()).

thx
-
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: logging to seperate log file per war file

2005-04-12 Thread Darek Czarkowski
do you have console appender included in your log4j config file?
comment it out.

On Mon, 2005-04-11 at 20:12, quentin.compson wrote:
 is this possible using context.xml or some other way?  im using log4j but some
 output still goes to stdout (e.g System.out.println()).
 
 thx
 
 
 -
 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: Logging in Tomcat 5.5

2005-03-18 Thread Jess Holle
I'm *guessing* you're facing some of the issues I have been.
I believe you'll essentially need to set up a separate LoggerRepository 
(based on classloader, not thread or contextual class loader) and 
provide separate config files for each.

I've got log4j.jar in my WEB-INF/lib, I'm using my own 
static/classloader-based LoggerRepository, and this keeps Tomcat's logs 
using their own LoggerRepository and a separate logging configuration.  
I'm still not to where I want to be with this, but it's a far cry from 
the out-of-the-box mess that occurs with log4j and commons-logging.

--
Jess Holle
Joy Kenneth Harry wrote:
Hi,
I have a webapp in tomcat. I am using a separate Log4j.xml for it, in
its WEB-INF classes folder.
I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to
false so that I do not get the general Tomcat logs.
But even then my project logs are getting mixed with the TOMCAT logs.
Is there any way to disable TOMCAT logs.
 

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


Re: Logging in Tomcat 5.5

2005-03-17 Thread Simon Kitching
On Fri, 2005-03-18 at 11:25 +0530, Joy Kenneth Harry wrote:
 Hi,
 I have a webapp in tomcat. I am using a separate Log4j.xml for it, in
 its WEB-INF classes folder.
 
 I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to
 false so that I do not get the general Tomcat logs.
 
 But even then my project logs are getting mixed with the TOMCAT logs.
 Is there any way to disable TOMCAT logs.

By project logs do you mean messages deliberately logged by the code
within *your webapp*, or do you mean messages from tomcat itself?

If you are talking about messages logged by code within your webapp, is
it using the log4j API or the commons-logging API?


Regards,

Simon


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



Re: logging remote IP address

2005-01-31 Thread David Smith
Sorry I'm coming into this discussion so late.  I tend not to read work 
email on weekends for my own sanity.

Let's not equate IPs with users.  The fact of the matter is there are a 
lot of places that use cable routers to share one internet IP with a 
number of different clients.  Here in Ithaca, it's as common as water 
with student housing doing some not so legal things with their 
Roadrunner hook-ups.  I'm sure other areas are doing the same stuff with 
both cable routers and wireless access points.

The facts of the matter are you have two different sessions with two 
different login.  Personally I would consider that enough to determine 
there are two different people regardless of the common IP.

--David
Mark wrote:
I'm trying to figure out is is the client on remote network has a
duplicated id's (id used in my aplication).
Here an example:
I have two entries in access log file within 30 second from the same
IP, but different logon id - my question is how to track it down that
it's a different person?
I check cookies: sessionID is not the same, but it doesn't help since
you can close and open a browser to create a new cooke string.
It might be getting of Tomcat topic, but any input is welcome.
Thanks,
Mark.
--- Cervenka, Tom [EMAIL PROTECTED] wrote:
 

Mark,
Why do want to know the internal NAT ip address of a request? How
is
this helpful?
Also, what if the requests come from clients with accounts on the
same
multiuser system? Are you trying to figure out how to tell them
apart?
There is no NAT address in this case.
Maybe what you are trying to do is best solved by using cookies?
What is
it that you are trying to do?
Tom


   

-
 

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


		
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

-
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: logging remote IP address

2005-01-31 Thread Dakota Jack
snip
 Let's not equate IPs with users.  The fact of the matter is there are a
 lot of places that use cable routers to share one internet IP with a
 number of different clients.  
/snip

You probably did not have time to read all of the posts, David, but,
the fact of the matter, I think everyone was clear on this one.

snip
 The facts of the matter are you have two different sessions with two
 different login.  Personally I would consider that enough to determine
 there are two different people regardless of the common IP.
/snip

Different sessions do not indicate two different people or two
different machines anymore than the same ip address indicates the same
person.  I think that the original question, however, would have been
happy with identifying two different machines.  And, of course, one
can do thatl  So we do not have to make your assumption.

Jack


-- 
You can lead a horse to water but you cannot make it float on its back.
Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



Re: logging remote IP address

2005-01-29 Thread Markus Schönhaber
Mark wrote:
I'm just tring to see if http request that came from one IP address
has more then 1 client behind it. I've seen on some webpages that My
IP is displayed as both external and internal - so it means it's
doable - but the question is how to get this info in Tomcat.
If your local an your external (NATed) IP addresses are both displayed 
by a webpage you access, you are almost certainly accessing this site 
via a proxy that set the X-Forwarded-For HTTP-header-field to contain 
your local IP (the IP the proxy itself was accessed from).
But that's nothing you can rely on.

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


Re: logging remote IP address

2005-01-29 Thread Dakota Jack
snip
On Fri, 28 Jan 2005 20:43:20 -0500, Parsons Technical Services
[EMAIL PROTECTED] wrote:
 Definitely possible. Not as unlikely as you think. I know of shops that put
 a whole bunch of users on the same IP.
 
 Then there are schools that put a hundreds of classroom machines on one IP.
 
 Doug
/snip

If you remember the context in which I am working here, this is not so
clear.  I know why you think it is and from the context in which you
are talking, I understand why you say that.  However, remember that
each person or machine that has access to a server in order to make a
request must be uniquely identified or that person or machine cannot
get a response.

This could take quite a while to discuss, actually.  The IP address
that is exposed to the public, which is the one I use, has to be
different or there would be no way to get back to the client machine. 
So, we may be talking about same IP in a different sense.  Remember
that distinctions you may be making in URLs I am making in IPs.  There
might not even be a URL (i.e. non-number URI) in my case.

Jack

-- 
You can lead a horse to water but you cannot make it float on its back.

~Dakota Jack~

You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be
crows.  We are poor . . . but we are free.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



RE: logging remote IP address

2005-01-29 Thread Caldarale, Charles R
 From: Dakota Jack [mailto:[EMAIL PROTECTED]
 Subject: Re: logging remote IP address
 
 The IP address that is exposed to the public, which is 
 the one I use, has to be different or there would be no 
 way to get back to the client machine. 

Not true - the combination of IP address and PORT must be unique, not just the 
IP address.  This is the essence of how NAT and proxies work.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



[OT]Re: logging remote IP address

2005-01-29 Thread Parsons Technical Services


From: Dakota Jack [mailto:[EMAIL PROTECTED]
Subject: Re: logging remote IP address
The IP address that is exposed to the public, which is
the one I use, has to be different or there would be no
way to get back to the client machine.
Charles Wrote:
Not true - the combination of IP address and PORT must be unique, not just 
the IP address.  This is the essence of how NAT and proxies work.

To expand on this, the job of a nat or pat device is not only to re-write 
the IP in the packet for as you say the packet would never return to the 
user, but to also keep track of all the connections established out bound 
and where they come from on the inside.

When you make a request you send out a packet. It's destination is port 80 
but the source on your machine may be any upper port. So it could look like:

Source
192.168.10.31  port 14984
Destination
206.67.68.2   port 80
When the pat/nat devices gets done
Source
67.34.126.21 port 44543
Destination
206.67.68.2   port 80
What is critical is that the pat/nat device remembers that:
192.168.10.31  port 14984
equals
67.34.126.21 port 44543
and thus reverses the changes in the packet.
If another machine goes out it will get a unique port and thus the pat/nat 
device can keep track of which one is which.

As for what is nat and pat.
nat: Network address translation. All inside adresses are converted to one 
(Masqurade) outside address or one inside address is translated into a 
specific outside address. With the later your client will alwas have the 
same address.

pat: pooled address translation. Same as Masqurade but done with a pool of 
addresses to support more clients.

Hope this helps.
Doug
PS I think we left the pavement a long time ago, and thus this would be off 
topic.


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


Re: [OT]Re: logging remote IP address

2005-01-29 Thread Dakota Jack
snip
On Sat, 29 Jan 2005 22:58:01 -0500, Parsons Technical Services 
 Not true - the combination of IP address and PORT must be unique, not just
 the IP address.  This is the essence of how NAT and proxies work.
/snip

Yes, once again, I agree with this.  

Jack

-- 
You can lead a horse to water but you cannot make it float on its back.

~Dakota Jack~

You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be
crows.  We are poor . . . but we are free.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



Re: logging remote IP address

2005-01-28 Thread Mark
I'm just tring to see if http request that came from one IP address
has more then 1 client behind it. I've seen on some webpages that My
IP is displayed as both external and internal - so it means it's
doable - but the question is how to get this info in Tomcat.


--- Parsons Technical Services [EMAIL PROTECTED]
wrote:

 If what you are trying to see is the private IP of a machine then
 you will 
 only have success if the machine was named the IP. Not likely. The
 IP is not 
 stored in the HTTP header (Unless I missed it) but is derived from
 the 
 TCP/IP packet. When a machine is on a private network this address
 is 
 rewritten by the router the provides NAT or PAT translation.
 
 The one IP that is returned is the IP given by the router. Or is
 the 
 actual IP of the machine.
 
 If I misunderstood what you needed let me know.
 
 Doug
 
 - Original Message - 
 From: Mark [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, January 27, 2005 3:28 PM
 Subject: logging remote IP address
 
 
  Hi,
  Can anybody help how to log remote IP internal address using
 catalina
  logger (org.apache.catalina.*) classes and Http request class?
 
  request.getRemoteAddr() returns only one IP, but I'd like to see
 if
  the request came from subnewtwork or not:
 
  I'm looking for both values external IP and internal so my log
 will
  look like:
 
  200.200.200.200 (192.168.1.2) - - [5/Jan/2005:15:56:23 -0500]
 GET
  /test/index.jsp HTTP/1.0 200 354
 
  Thanks,
  Mark.
 
 
 
  __
  Do you Yahoo!?
  The all-new My Yahoo! - Get yours free!
  http://my.yahoo.com
 
 
 
 

-
  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]
 
 




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: logging remote IP address

2005-01-28 Thread Dakota Jack
I don't know what you mean by I've seen on some webpages [sic] that
My [sic] IP is displayed as both exernal and internal.  The IP
address is for the internet and there is only one.  You may have
internal routing.  That is different.  I don't know what you mean
about webpages displaying your internal routing, if that is what you
mean.  That sounds sort of impossible to me.  See below:

snip
On Fri, 28 Jan 2005 08:21:15 -0800 (PST), Mark [EMAIL PROTECTED] wrote:
 I'm just tring to see if http request that came from one IP address
 has more then 1 client behind it. I've seen on some webpages that My
 IP is displayed as both external and internal - so it means it's
 doable - but the question is how to get this info in Tomcat.
/snip

There is good news and bad news.  First, the bad.  You cannot get
internal (e.g. intranet information) routing information from the
request.   Second, the good: which has two parts.  First part: thank
God, because this would expose you mercifullessly to the outside if
the request had this information. Second part: thank God, because you
don't need this information in the request   If you want to see the
direction back to a machine that is sending a request from any
network, that will be in the request without the internals of the
network being there.  The responder will know how to get to your
network and your network will know how to get to the machine.  So, all
is well that ends well.

Jack

-- 
--

You can lead a horse to water but you cannot make it float on its back.

~Dakota Jack~

You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be crows.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



RE: logging remote IP address

2005-01-28 Thread Richard Mixon (qwest)
Mark wrote:
 I'm just tring to see if http request that came from one IP address
 has more then 1 client behind it. I've seen on some webpages that My
 IP is displayed as both external and internal - so it means it's
 doable - but the question is how to get this info in Tomcat.

A major purpose of a NAT style firewall is to hide the private ip
addresses behind the firewall. If it allowed this information out it
would be a security compromise - the network topology behind the
firewall is to be kept secret.

I may be wrong, but I believe any web page you have been to that also
showed in the browser/client's internal private IP address must have had
a plugin - either an ActiveX or other type of plugin was probably
involved.

HTH - Richard


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



RE: logging remote IP address

2005-01-28 Thread Cervenka, Tom
Mark,

Why do want to know the internal NAT ip address of a request? How is
this helpful?

Also, what if the requests come from clients with accounts on the same
multiuser system? Are you trying to figure out how to tell them apart?
There is no NAT address in this case.

Maybe what you are trying to do is best solved by using cookies? What is
it that you are trying to do?

Tom




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



Re: logging remote IP address

2005-01-28 Thread Dakota Jack
Richard Mixon is, as usual, dead-on right.  A good primer is
http://webserver.cpg.com/ws/3.4/

snip
 A major purpose of a NAT style firewall is to hide the private ip
 addresses behind the firewall. If it allowed this information out it
 would be a security compromise - the network topology behind the
 firewall is to be kept secret.
 
 I may be wrong, but I believe any web page you have been to that also
 showed in the browser/client's internal private IP address must have had
 a plugin - either an ActiveX or other type of plugin was probably
 involved.
 
 HTH - Richard
/snip

Jack


-- 
--

You can lead a horse to water but you cannot make it float on its back.

~Dakota Jack~

You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be
crows.  We are poor . . . but we are free.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



RE: logging remote IP address

2005-01-28 Thread Mark

I'm trying to figure out is is the client on remote network has a
duplicated id's (id used in my aplication).

Here an example:
I have two entries in access log file within 30 second from the same
IP, but different logon id - my question is how to track it down that
it's a different person?

I check cookies: sessionID is not the same, but it doesn't help since
you can close and open a browser to create a new cooke string.

It might be getting of Tomcat topic, but any input is welcome.

Thanks,
Mark.

--- Cervenka, Tom [EMAIL PROTECTED] wrote:

 Mark,
 
 Why do want to know the internal NAT ip address of a request? How
 is
 this helpful?
 
 Also, what if the requests come from clients with accounts on the
 same
 multiuser system? Are you trying to figure out how to tell them
 apart?
 There is no NAT address in this case.
 
 Maybe what you are trying to do is best solved by using cookies?
 What is
 it that you are trying to do?
 
 Tom
 
 
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: logging remote IP address

2005-01-28 Thread Dakota Jack
If it is the same IP address, it probably is the same person.  The
alternatives are highly unlikely, if possible.

Jack

snip
 I have two entries in access log file within 30 second from the same
 IP, but different logon id - my question is how to track it down that
 it's a different person?
/snip

Jack

-- 
--

You can lead a horse to water but you cannot make it float on its back.

~Dakota Jack~

You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be
crows.  We are poor . . . but we are free.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



Re: logging remote IP address

2005-01-28 Thread Parsons Technical Services
Definitely possible. Not as unlikely as you think. I know of shops that put 
a whole bunch of users on the same IP.

Then there are schools that put a hundreds of classroom machines on one IP.
Doug
- Original Message - 
From: Dakota Jack [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, January 28, 2005 4:44 PM
Subject: Re: logging remote IP address


If it is the same IP address, it probably is the same person.  The
alternatives are highly unlikely, if possible.
Jack
snip
I have two entries in access log file within 30 second from the same
IP, but different logon id - my question is how to track it down that
it's a different person?
/snip
Jack
--
--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~
You can't wake a person who is pretending to be asleep.
~Native Proverb~
Each man is good in His sight. It is not necessary for eagles to be
crows.  We are poor . . . but we are free.
~Hunkesni (Sitting Bull), Hunkpapa Sioux~
---
This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.
-
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: logging remote IP address

2005-01-27 Thread Parsons Technical Services
If what you are trying to see is the private IP of a machine then you will 
only have success if the machine was named the IP. Not likely. The IP is not 
stored in the HTTP header (Unless I missed it) but is derived from the 
TCP/IP packet. When a machine is on a private network this address is 
rewritten by the router the provides NAT or PAT translation.

The one IP that is returned is the IP given by the router. Or is the 
actual IP of the machine.

If I misunderstood what you needed let me know.
Doug
- Original Message - 
From: Mark [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, January 27, 2005 3:28 PM
Subject: logging remote IP address


Hi,
Can anybody help how to log remote IP internal address using catalina
logger (org.apache.catalina.*) classes and Http request class?
request.getRemoteAddr() returns only one IP, but I'd like to see if
the request came from subnewtwork or not:
I'm looking for both values external IP and internal so my log will
look like:
200.200.200.200 (192.168.1.2) - - [5/Jan/2005:15:56:23 -0500] GET
/test/index.jsp HTTP/1.0 200 354
Thanks,
Mark.

__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

-
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: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Shed Hollaway
Svein

Did you ever get an answer to you question? If so, how separate the logging
for webapps?

Shed.
- Original Message -
From: Svein Olav Bjerkeset [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 03, 2005 12:12 AM
Subject: Logging exceptions per webapp in Tomcat 5.5


 After having read about how to setup logging in Tomcat 5.5
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html),
 I have managed to set up Log4j to work with Tomcat 5.5.

 However, when I set up indivdual logs for my webapps, only output
generated from log statements in the code (Log4j
 statements) end up in these logs. Exceptions still end up in catalina.out
(which is common to all webapps). I would
 like the exceptions to end up in the logfile belonging to the webapp that
generated it.

 I have tried adding the following line in my
web/WEB-INF/classes/log4j.properties file without getting the wanted result:


log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[
/mywebapp]=DEBUG, A1

 To test the logging, I have written a short JSP which just thorws an
exception.

 From what I read in the following article:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg143230.html,
 it seems that exceptions (and other output sent to stdout or stderr) can
not be redirected and will always go to
 catalina.out. Is this correct or is there a way to also redirect
exceptions to individual log files basen on what
 wabapp generated the exception?

 Thanks in advance for any help,
 Svein Olav Bjerkeset

 -
 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: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Will Hartung
 From: Shed Hollaway [EMAIL PROTECTED]
 Sent: Thursday, January 06, 2005 6:59 PM

 Svein

 Did you ever get an answer to you question? If so, how separate the
logging
 for webapps?

The exceptions will log out to your log file if you actually bother to
capture the exceptions and log them. The exceptions bubbling to the top in
catalina.out are those that get out of your code.

Don't let them out and capture them yourself. You can try (I haven't done
this) to put a catch-all Filter at the top of your app that does nothing but

public void doFilter(ServletRequest req, ServletResponse resp, FilterChain
chain)
{
try {
filterChain.doFilter(request, response);
}
catch(Throwable t) {
log.WARN(t);
}
}

(making this work is left as an excercise for the reader)

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Shed Hollaway
Thanks I'll try that!
- Original Message -
From: Will Hartung [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, January 06, 2005 5:32 PM
Subject: Re: Logging exceptions per webapp in Tomcat 5.5


  From: Shed Hollaway [EMAIL PROTECTED]
  Sent: Thursday, January 06, 2005 6:59 PM

  Svein
 
  Did you ever get an answer to you question? If so, how separate the
 logging
  for webapps?

 The exceptions will log out to your log file if you actually bother to
 capture the exceptions and log them. The exceptions bubbling to the top in
 catalina.out are those that get out of your code.

 Don't let them out and capture them yourself. You can try (I haven't done
 this) to put a catch-all Filter at the top of your app that does nothing
but

 public void doFilter(ServletRequest req, ServletResponse resp, FilterChain
 chain)
 {
 try {
 filterChain.doFilter(request, response);
 }
 catch(Throwable t) {
 log.WARN(t);
 }
 }

 (making this work is left as an excercise for the reader)

 Regards,

 Will Hartung
 ([EMAIL PROTECTED])


 -
 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: logging swallow output

2004-12-04 Thread Roberto Cosenza
Yes, I'm using a ConsoleAppender.
Are you telling me to use SimpleLog ?
I don't think that the link you sent me clarifies my ideas...
/rob
David Stevenson wrote:
Is your Log4j configured to use a ConsoleAppender?
That might possibly explain it.
http://jakarta.apache.org/commons/httpclient/logging.html
David Stevenson
 


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


Re: logging swallow output

2004-12-03 Thread Ben Souther

On Fri, 2004-12-03 at 04:28, Roberto Cosenza wrote:
 For some reason I still have a lot of messages getting to catalina.out 
 even If I have swallowoutput=3 and my logger gets a copy of the message.
 What can the problem be?
 I use tomcat 5.0.28


You might want to take a look at the configruation documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

swallowOutput (which is case sensitive) is not looking for an int.
It's looking for true/false.

Here a working example:

Context path=/myapp  
 docBase=myapp 
 debug=0 
 crossContext=false  
 reloadable=false 
 privileged=false 
 swallowOutput=true
  Logger directory=f:\\tomcat\\logs
  className=org.apache.catalina.logger.FileLogger
  prefix=myapp_log. 
  suffix=.txt
  timestamp=true/
/Context








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



Re: logging swallow output

2004-12-03 Thread Roberto Cosenza
I did mean swallowOutput=true
My typo.
Problem still there, strange... (I'm using commons-logging + log4j to log)
Ben Souther wrote:
On Fri, 2004-12-03 at 04:28, Roberto Cosenza wrote:
 

For some reason I still have a lot of messages getting to catalina.out 
even If I have swallowoutput=3 and my logger gets a copy of the message.
What can the problem be?
I use tomcat 5.0.28
   


You might want to take a look at the configruation documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
swallowOutput (which is case sensitive) is not looking for an int.
It's looking for true/false.
Here a working example:
Context path=/myapp  
docBase=myapp 
debug=0 
crossContext=false  
reloadable=false 
privileged=false 
swallowOutput=true
 Logger directory=f:\\tomcat\\logs
 className=org.apache.catalina.logger.FileLogger		   
 prefix=myapp_log. 
 suffix=.txt
 timestamp=true/
/Context




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


--
Roberto Cosenza
Infoflex Connect AB, Sweden
Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861
--
Nordic Messaging Technologies is a trademark of Infoflex Connect.
Please visit www.nordicmessaging.se for more information about our
carrier-grade messaging products.

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


Re: logging swallow output

2004-12-03 Thread David Stevenson
Is your Log4j configured to use a ConsoleAppender?
That might possibly explain it.

http://jakarta.apache.org/commons/httpclient/logging.html

David Stevenson

On Fri, 2004-12-03 at 08:22, Roberto Cosenza wrote:
 I did mean swallowOutput=true
 My typo.
 Problem still there, strange... (I'm using commons-logging + log4j to log)
 Ben Souther wrote:
 
 On Fri, 2004-12-03 at 04:28, Roberto Cosenza wrote:
   
 
 For some reason I still have a lot of messages getting to catalina.out 
 even If I have swallowoutput=3 and my logger gets a copy of the message.
 What can the problem be?
 I use tomcat 5.0.28
 
 
 
 
 You might want to take a look at the configruation documentation:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
 
 swallowOutput (which is case sensitive) is not looking for an int.
 It's looking for true/false.
 
 Here a working example:
 
 Context path=/myapp  
  docBase=myapp 
  debug=0 
  crossContext=false  
  reloadable=false 
  privileged=false 
  swallowOutput=true
   Logger directory=f:\\tomcat\\logs
   className=org.apache.catalina.logger.FileLogger 
   prefix=myapp_log. 
   suffix=.txt
   timestamp=true/
 /Context
 
 
 
 
 
 
 
 
 -
 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: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav

Hi,

a) Convert my log4j.properties file to use a RollingFileAppender.  I

This is good.

AppDirectory inside Parameters using the Registry Editor), I couldn't
figure out how to change the home directory for Tomcat running as a

Relying on the home directory is bad.

logging; I'd rather use a relative path (something like ./logs) and
have the logs all end up in %TOMCAT_HOME%/logs.

Log4j configuration files can have environment variables in them, e.g.
${CATALINA_HOME}/logs/mylog.txt.  Alternatively, you could use
programmatic configuration instead of log4j.properties.

b) Leave my log4j.properties file using ConsoleAppender and use a
Logger element in my Context to have Tomcat put the output into a

This is also bad.  Loggers are gone in Tomcat 5.5.  I realize it might
also take 2 years for you to go from 5.0 to 5.5, just like it did from
4.1 to 5.0, but still it doesn't make sense to design something relying
on Logger at this point.

+ Put all of the responsibility into the webapp using log4j?  If so -

Yes.  This maximizes portability, container-independence, and control
for you.

how can I configure the home directory of Tomcat when I install the

You can, but shouldn't anyways.  Forget about any design based upon a
home directory or current working directory location.

Service?  Or should I hardwire some other location for the logs?

You can, but don't have to.  If you have a logging directory for
everything running on the production server, you can hard-wire that.

Yoav Shapira http://www.yoavshapira.com




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 and Deployment best practices

2004-11-23 Thread Phillip Qin
Hi, I don't think the log will go to system32 directory. Try something like
this

log4j.rootLogger=INFO, fatalconsole, file
  |
    
 |  
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt
log4j.appender.file.DatePattern='.'-MM-dd
log4j.appender.file.Threshold=DEBUG


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: November 23, 2004 10:14 AM
To: Tomcat Users List
Subject: RE: Logging and Deployment best practices



Hi,

a) Convert my log4j.properties file to use a RollingFileAppender.  I

This is good.

AppDirectory inside Parameters using the Registry Editor), I couldn't 
figure out how to change the home directory for Tomcat running as a

Relying on the home directory is bad.

logging; I'd rather use a relative path (something like ./logs) and 
have the logs all end up in %TOMCAT_HOME%/logs.

Log4j configuration files can have environment variables in them, e.g.
${CATALINA_HOME}/logs/mylog.txt.  Alternatively, you could use programmatic
configuration instead of log4j.properties.

b) Leave my log4j.properties file using ConsoleAppender and use a 
Logger element in my Context to have Tomcat put the output into a

This is also bad.  Loggers are gone in Tomcat 5.5.  I realize it might also
take 2 years for you to go from 5.0 to 5.5, just like it did from 4.1 to
5.0, but still it doesn't make sense to design something relying on Logger
at this point.

+ Put all of the responsibility into the webapp using log4j?  If so -

Yes.  This maximizes portability, container-independence, and control for
you.

how can I configure the home directory of Tomcat when I install the

You can, but shouldn't anyways.  Forget about any design based upon a home
directory or current working directory location.

Service?  Or should I hardwire some other location for the logs?

You can, but don't have to.  If you have a logging directory for everything
running on the production server, you can hard-wire that.

Yoav Shapira http://www.yoavshapira.com




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]


!DSPAM:41a35416244686896713316!


RE: Logging and Deployment best practices

2004-11-23 Thread Allistair Crossley
 But I finally decided as I was upgrading Tomcat that I'd address that
 problem by moving to a rolling file appender.  Seems to me that I have
 two choices for doing this: 

we find the rolling file appenders useful as you can specify periodcity and 
they rename themselves to dated filenames. you can then manage those files 
however you like.
 
 a) Convert my log4j.properties file to use a RollingFileAppender.  I
 did this, and much to my surprise the log files showed up in my
 %WIN_HOME%/system32 folder.  

we put a placeholder in the log4j.properties file ${log4j.home} that gets 
replaced with Ant when the build task is called either for development or 
production. That means we have separate properties files for dev and prod 
configs and the log4j.home parameter is actually a full path. You could adapt 
this to your own scenarios. I've never gotten by default the log4j file logs 
into tomcat's logs either, so use this other method.

 b) Leave my log4j.properties file using ConsoleAppender and use a
 Logger element in my Context to have Tomcat put the output into a
 file.  I have not tried this yet, and wanted to post this query before
 digging further into it.  Is this a good alternative?  I have two
 issues with it:

Yeah probably not a good logging stategy considering it's gone ;) And anyways, 
that stuff was only for specific types of logging info that will now come 
through in stdout.

Allistair.


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


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



Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
On Tue, 23 Nov 2004 10:14:24 -0500, Shapira, Yoav [EMAIL PROTECTED] 
wrote:
a) Convert my log4j.properties file to use a RollingFileAppender.  I 

This is good. 

I'd rather use a relative path (something like ./logs) and
have the logs all end up in %TOMCAT_HOME%/logs. 

Log4j configuration files can have environment variables in them, e.g.
${CATALINA_HOME}/logs/mylog.txt.  Alternatively, you could use
programmatic configuration instead of log4j.properties.
Cool!  I guess it pays to know where to look.  I've been digging through 
Tomcat documentation to find an answer, when I guess I needed to read the 
log4j documentation. 

I want to stay away from programmatic configuration of log4j, and just use 
property files.  Using an environment variable gives me the flexibility I 
need. 

Thanks for your answers! 

--
PC 

Paul Christmann
Prior Artisans, LLC
mailto:[EMAIL PROTECTED]
504-587-9072
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Shapira, Yoav writes:
Loggers are gone in Tomcat 5.5.
One gentle suggestion: Is it possible make a note of that in the server 
configuration documentation?  I was reading 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was 
just getting interested in them before reading a post on the topic this 
morning. 

Thanks again, 

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


RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav

Hi,

One gentle suggestion: Is it possible make a note of that in the server
configuration documentation?  I was reading
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and
was
just getting interested in them before reading a post on the topic this
morning.

If we were to start peppering the docs for version X (e.g 5.0) with
references to how a feature is handled in versions Y (e.g. 3.x, 4.x) and
Z (5.5.x) as well, the docs would become a real mess (look at the
changelogs to get an idea of how much would be added), and I think more
people would be confused than helped.

You should consult the changelogs before upgrading: that's where
information such as Loggers being removed is covered.  If unsure or
unclear, you have resources like this mailing list.

Yoav Shapira http://www.yoavshapira.com




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 and Deployment best practices

2004-11-23 Thread Allistair Crossley
speaking of which yoav, it's been a little while since i first submitted a doc 
patch for 5.5's logging page and it's not been made live yet .. is this a 
painful procedure ;) :)

Allistair

 -Original Message-
 From: Paul Christmann [mailto:[EMAIL PROTECTED]
 Sent: 23 November 2004 15:51
 To: Tomcat Users List
 Subject: Re: Logging and Deployment best practices
 
 
 Shapira, Yoav writes:
  Loggers are gone in Tomcat 5.5.
 
 One gentle suggestion: Is it possible make a note of that in 
 the server 
 configuration documentation?  I was reading 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.
html and was 
just getting interested in them before reading a post on the topic this 
morning. 

Thanks again, 

PC

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



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


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



Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Phillip Qin writes: 

Hi, I don't think the log will go to system32 directory. 
Try something like this 

log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt
It will when I just do this, though: 

log4j.appender.file.File=lciponline_debug.txt 

Using the environment variable was the trick that I didn't know about.  
Thanks for your answer! 

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


RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav

Hi,

speaking of which yoav, it's been a little while since i first
submitted a
doc patch for 5.5's logging page and it's not been made live yet .. is
this
a painful procedure ;) :)

As the Bugzilla comments said, your patch (a modified version thereof,
actually) has been committed.  The changes will be visible at the same
time as any other patch: that is, in the next release.  And to pre-empt
the next question, there's no designate release schedule.

Yoav



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

2004-11-23 Thread Shapira, Yoav

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

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
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/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=2
   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: logging compression stats

2004-11-22 Thread Tim Funk
There is no way to log that information right now.
-Tim
Ben Simon wrote:
Howdy,
I've enabled compression on my server [1]:
,
| Connector port=8090
|maxThreads=150 minSpareThreads=25 maxSpareThreads=75
|enableLookups=false redirectPort=8453 acceptCount=100
|debug=0 connectionTimeout=2  
|compression=on compressionMinSize=2048 
|compressableMimeType=text/html,text/xml,text/plain,text/javascript,text/css
|disableUploadTimeout=true/ 
`

And, when I make a request with the Accept-Encoding header set to gzip,
I do indeed get compressed output.
However, the file size logged in the access log is the same as if I
requested it and it wasn't compressed.
Is there an way to enable any kind of logging or cause the access log to
record the size of the encoded content sent to the browser?  If I enable
compression I'd like to able to audit how often it gets used and what kind
of savings I'm getting from it. 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: logging question

2004-11-15 Thread Shapira, Yoav

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

 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 /
   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 /
  ResourceParams name=UserDatabase
   parameter
   namefactory/name
   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
   namepathname/name
   valueconf/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=2
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 /
  Realm className=org.apache.catalina.realm.JDBCRealm
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 /
  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/
   /Host
 /Engine
   /Service
  /Server

context.xml under the application/web-INF directory
?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true docBase=IMS debug=4
   Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
   Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context

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 problem under Tomcat 5.0

2004-11-08 Thread Shapira, Yoav

Hi,

do need it.  In any event, I don't like the log level changing without
knowing why  without explicitly allowing it (tho' by deploying some
jar
or war, I've effectively ok'd it).

Yeah, maybe it's what you put in parentheses above, or maybe it's
something else, but things don't just change by themselves ;)

Any suggestions on an easy way to track down the culprit or prevent
some
random process of jacking up the default log level?

Define default in the above sentence?

BTW -  tomcat/conf/log4j.properties is still reasonable  I've found
nothing unusual in tomcat/conv/server.xml .

Does tomcat/conf/log4j.properties assign a level to org.apache loggers?
If not, it should.  If it worked before without doing this, you were
lucky.  Add something like logger.org.apache = WARN and you'll be all
set.

Yoav



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 stout to seperate file for each webapp

2004-10-27 Thread Shapira, Yoav

Hi,
Check out the swallowOutput attribute on the Context element, and the SystemOut and 
SystemErr Logger elements: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html and 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 10:15 AM
To: [EMAIL PROTECTED]
Subject: Logging stout to seperate file for each webapp

I have some old webapps running that i dont wanna dig into (they are really
old), and they do a lot of stout logging to catalina.out

Can I on Tomcat 4.1.X somehow get the different webapps to log in a
seperate file, and how is this done?

Ive searches the docs and google, but i cant seem to find a solution.

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 4.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk


-
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: logging, configuration.

2004-10-04 Thread Shapira, Yoav

Hi,
Comment out the RequestDumperValve (in $CATALINA_HOME/conf/server.xml)
altogether: it's output is not errors, as you noted.  However, it's also
not a Logger per-se and so the Logger congifuration doesn't apply to it.
It's commented out by default, so go back to the default ;)


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Pawson, David [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 4:27 AM
To: Tomcat Users List
Subject: RE:logging, configuration.



-Original Message-
From: Jacob Kjome
Is it the commons-logging that produces
catalina_log.date.txt? Is there
a config file as per log4j?

Even when testing, this file becomes quite significant.
It would be nice to reduce/minimise its output.

Ultimately, Tomcat uses commons-logging for logging, but
uses its own Logger interface which is configured in
context configuration files or server.xml.  Note that this
is no longer the case in 5.5.x.  Read the docs on Tomcat's
Logger's for more info.

tc 5.0.27, server.xml has

   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs
prefix=localhost_log.
suffix=.txt
timestamp=true/

and
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log.
 suffix=.txt
 verbosity=1
  timestamp=true/

The documentation states that verbosity = 1 should log errors only?
(which it states to be the default)

I don't think the log output below constitute errors?
Is there somewhere else that I can restrict the log output
to errors only please?

regards DaveP



2004-10-04 09:22:16 RequestDumperValve[Catalina]:
===
2004-10-04 09:22:20 RequestDumperValve[Catalina]: REQUEST URI
=/repository/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
authType=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
characterEncoding=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentLength=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentType=multipart/form-data; boundary=---
7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contextPath=/repository
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/xhtml+xml, application/x-shockwave-flash,
application/vnd.ms-
excel, application/vnd.ms-powerpoint, application/msword, */*
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=referer=http://localhost/repository/upload/index.html
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept-language=en-gb
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=content-type=multipart/form-data;
boundary=-
--7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=accept-encoding=gzip, deflate
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=user-
agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer
2.0;
.NET CLR 1.1.4322)
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=host=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=content-length=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=connection=Keep-Alive
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=cache-
control=no-cache
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
header=cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
locale=en_GB
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
method=POST
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
pathInfo=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
protocol=HTTP/1.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
queryString=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteAddr=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteHost=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
remoteUser=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
requestedSessionId=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
scheme=http
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
serverName=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverPort=80
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
servletPath=/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
isSecure=false
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
-
--
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
-
--
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
authType=FORM
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  

RE: logging, configuration.

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 
Comment out the RequestDumperValve (in 
$CATALINA_HOME/conf/server.xml)
altogether: it's output is not errors, as you noted.  
However, it's also not a Logger per-se and so the Logger 
congifuration doesn't apply to it.
It's commented out by default, so go back to the default ;)  

Groan :-)
  Lousy choice to uncomment.
Thanks Yoav.
  I can cancel those terabyte club san's now!

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Re: logging something to catalina.out

2004-09-06 Thread Rhino

- Original Message - 
From: muhammed soyer [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 7:53 AM
Subject: logging something to catalina.out


Hello,

How can I write something to the logfile . I should study log4j in a
few days ..
But if there is an easyway of writing a line to the log files of tomcat
..it should be helpfull to me now ..

--

If I'm not mistaken, all you need is:

System.out.println(I should study log4j in a few days...).

Rhino


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



Re: logging something to catalina.out

2004-09-06 Thread Christian Fritze
Rhino wrote:
 
 If I'm not mistaken, all you need is:
 
 System.out.println(I should study log4j in a few days...).

Try replacing 'out' with 'err', then it should work... ;-)

Christian


-- 
Gre aus Europas grtem   Greetings from Europe's largest
Urban Sprawl (DUDOMA -- Duisburg Dortmund Metropolitan Axis ;-)
Christian Fritze   [EMAIL PROTECTED]   http://www.sprawl.de/


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



Re: logging something to catalina.out

2004-09-06 Thread muhammed soyer
:)
I was thinking that my class is jumping inthe catch block ..So I have tried
these in the catch block and couldnt get it written ..
As always the error is in the place where I am not looking for it :)

Thanks for your answers
-ms
- Original Message - 
From: Rhino [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 3:10 PM
Subject: Re: logging something to catalina.out



- Original Message - 
From: muhammed soyer [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 7:53 AM
Subject: logging something to catalina.out


Hello,

How can I write something to the logfile . I should study log4j in a
few days ..
But if there is an easyway of writing a line to the log files of tomcat
..it should be helpfull to me now ..

--

If I'm not mistaken, all you need is:

System.out.println(I should study log4j in a few days...).

Rhino


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


 Bu mail GESNET sunucusu tarafindan virus kontrolunden gecirilmistir.


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



Re: logging something to catalina.out

2004-09-06 Thread Rhino

- Original Message - 
From: Christian Fritze [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 06, 2004 8:18 AM
Subject: Re: logging something to catalina.out


 Rhino wrote:
 
  If I'm not mistaken, all you need is:
 
  System.out.println(I should study log4j in a few days...).

 Try replacing 'out' with 'err', then it should work... ;-)

Don't *both* System.out.println() and System.err.println() write to
catalina.out? If not, where does System.out.println() write?

I'm not arguing with you; I really don't remember.

Rhino


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



RE: Logging problem SOAP based web service

2004-08-20 Thread timo.m.jaakola
Hi,

What are Filters and how they can be used? In the below is the simplified example 
request and what we would like to log is command and user from the request + IP 
address of the client = bind the request to requestor's IP Address. Can the logging 
be done by Tomcat? Can we get IP address somehow to our implementation that processes 
the request, or is there some other way to bind required information into one 
log-file?  

s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/;
s:Body
someService xmlns=urn:some-request orderDate=2004-04-06
   foo-request
parameter name=command value=somecmd / 
parameter name=user value=cn=someuser / 
  /foo-request
  /someService
/s:Body
/s:Envelope

thanks,
-Timo


 -Original Message-
 From: ext Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 18 August, 2004 13:46
 To: Tomcat Users List
 Subject: Re: Logging problem SOAP based web service
 
 
 You might need to use a Filter to stuff the things you need 
 to log into the 
 ServletRequest. Then you can use this:
 
 http://marc.theaimsgroup.com/?l=tomcat-userm=109273888725607w=2
 
 -Tim
 
 [EMAIL PROTECTED] wrote:
 
  Hi,
  
  I have a SOAP based web service running on tomcat 4.1.30. 
 This service should write a log containing client's IP 
 address and some attributes from SOAP-message body (inside 
 SOAP envelope).  Is this possible somehow? 
  
  I suppose Tomcat's access logs cannot read attributes from 
 SOAP envelope and web service's implementation responding to 
 request does not know the IP address of the client 
 (parameters to ws implementation contain Envelope env, 
 SOAPContext reqCtx, SOAPContext resCtx). Any ideas?
   
 
 -
 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: Logging problem SOAP based web service

2004-08-20 Thread QM
On Fri, Aug 20, 2004 at 02:02:03PM +0300, [EMAIL PROTECTED] wrote:
: What are Filters and how they can be used?

Google servlet filter -- it's available in servlet spec 2.3 and later.

Essentially, you can set up a series of these filters to wrap a call to
your webapp, based on URI path or file extension.  Each filter is called
in turn (both for request and response). You can use them to check for
things in the request/session/etc and short-circuit the process if
something goes awry.


:In the below is the simplified example request and what we would like to log is 
command and user from the request + IP address of the client = bind the request to 
requestor's IP Address.

I missed your original post, but if you're trying to get to the client
IP from within the deployed web service -and- using Axis, it's possible.
I just dug this out recently myself.  Start with
MessageContext#getCurrentContext() 
find the session, cast it to an AxisSession, and get the wrapped
HttpSession object out of that.

It's a little buried.  =)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Logging problem SOAP based web service

2004-08-18 Thread Tim Funk
You might need to use a Filter to stuff the things you need to log into the 
ServletRequest. Then you can use this:

http://marc.theaimsgroup.com/?l=tomcat-userm=109273888725607w=2
-Tim
[EMAIL PROTECTED] wrote:
Hi,
I have a SOAP based web service running on tomcat 4.1.30. This service should write a log containing client's IP address and some attributes from SOAP-message body (inside SOAP envelope).  Is this possible somehow? 

I suppose Tomcat's access logs cannot read attributes from SOAP envelope and web service's implementation responding to request does not know the IP address of the client (parameters to ws implementation contain Envelope env, SOAPContext reqCtx, SOAPContext resCtx). Any ideas?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging problem SOAP based web service

2004-08-18 Thread QM
On Wed, Aug 18, 2004 at 11:46:19AM +0300, [EMAIL PROTECTED] wrote:
: I have a SOAP based web service running on tomcat 4.1.30. This service should
: write a log containing client's IP address and some attributes from
: SOAP-message body (inside SOAP envelope).  Is this possible somehow?

What's your SOAP engine?
I recall Apache Axis supports handlers that wrap a request.
Is the IP address available from the MessageContext or one of its member
vars?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Logging, Analysis and Forwarding

2004-07-29 Thread Shapira, Yoav
Hi,
There are many free log analysis tools.  Tomcat's AccessLogValve writes
the standard formats (CLF and ELF, Common Logfile Format and Extended
Logfile Format).  So you can use something like WebAlizer or
http-analyze.

Monthly collection of your logs is something you'd have to script
yourself: there's no such facility built into Tomcat.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: Logging, Analysis and Forwarding

Hi

I have 3 questions:

1. How can I enable redirection of errorLogs, accessLogs AND
stdout/stderr
into MONTHLY files with tomcat 5.0.27+?
2. Is there any freeware tool to analyse tomcats accessLogs?
3. Is there an easy way to forward host/test/... to
http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on
80). I
read that filters could do so, but found no example...

Maybe someone can help me. Thanks.

Regards,
  Steffen


-
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: Logging, Analysis and Forwarding

2004-07-29 Thread Tim Funk
To rotate your logs monthly - use the fileDateFormat field
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html
for example: fileDateFormat=-MM
-Tim
Shapira, Yoav wrote:
Hi,
There are many free log analysis tools.  Tomcat's AccessLogValve writes
the standard formats (CLF and ELF, Common Logfile Format and Extended
Logfile Format).  So you can use something like WebAlizer or
http-analyze.
Monthly collection of your logs is something you'd have to script
yourself: there's no such facility built into Tomcat.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 3:47 PM
To: [EMAIL PROTECTED]
Subject: Logging, Analysis and Forwarding
Hi
I have 3 questions:
1. How can I enable redirection of errorLogs, accessLogs AND
stdout/stderr
into MONTHLY files with tomcat 5.0.27+?
2. Is there any freeware tool to analyse tomcats accessLogs?
3. Is there an easy way to forward host/test/... to
http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on
80). I
read that filters could do so, but found no example...
Maybe someone can help me. Thanks.
Regards,
Steffen
-
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]

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


Re: Logging, Analysis and Forwarding

2004-07-28 Thread Robert Bateman
On Wednesday 28 July 2004 03:47 pm, SH Solutions wrote:
 3. Is there an easy way to forward host/test/... to
 http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on 80). I
 read that filters could do so, but found no example...

I used a simple HTML Redirect to accomplish this.  I found it easier and 
faster than anything else.

Bob



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



RE: Logging with mod_jk

2004-07-16 Thread Jens . Mueller
No hints?

-Ursprüngliche Nachricht-
Betreff: *** Mail von extern mit internem Absender ***Logging with
mod_jk


Hello all,

is it possible to log the Client-IP with mod_jk on Apache 1.3.x ??
The is nothing about it in the Documentation.
I use the JkLogStampFormat-Directive.

Greets
Jens

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



Re: Logging with mod_jk

2004-07-16 Thread Tim Funk
The client IP is already known by apache (%a)
Or via HttpServletRequest.getRemoteAddr()
-Tim
[EMAIL PROTECTED] wrote:
No hints?
-Ursprüngliche Nachricht-
Betreff: *** Mail von extern mit internem Absender ***Logging with
mod_jk
Hello all,
is it possible to log the Client-IP with mod_jk on Apache 1.3.x ??
The is nothing about it in the Documentation.
I use the JkLogStampFormat-Directive.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging in Apache Tomcat

2004-07-02 Thread Kunthar
Try System.out.println(your variable or your error thrown);
in your application for critical parts.
And follow the results from catalina.out file under /tomcat/logs
Hope this helps...
Gokhan

Robert Einsle wrote:
Hello List,
How do i make logging in JAkarta Tomcat applications??
Does it exists an Howto for it??
Thanks for help
\Robert

-
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: logging

2004-07-02 Thread Ivan Jouikov
I'm having the same issue.  Any suggestions would be welcome.

-Original Message-
From: Charles Baker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 7:04 AM
To: [EMAIL PROTECTED]
Subject: logging

I'm using tomcat 4.1.30 on Red Hat Linux w/ Sun JDK 1.4.2_03. In
catalina.sh one of the other admins has redirected standard out to a log
file so that we can capture some info that would ordinarily only be seen
at the console. What we would like to do is have the tomcat container
itself, not just a particular web application, use log4j to log it's
messages. Also, after the container is up and all webapps have been
deployed, we would like to lower the logging level of the container from
say INFO to FATAL. We are already doing this with JBoss but haven't been
able to figure a way to do this with tomcat. I've googled and looked at
the archives w/o finding anything relevant. Does anyone have a clue?


Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED] 
Whatever you vividly imagine, ardently desire, sincerely believe and
enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


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



Re: logging

2004-07-02 Thread Bill Barker
This is planned for a future release of TC 5 (it's available in the
'nightly' now).  And, no, I have absolutely no idea at all, not even a
guess, as to when this version will have an official release.

Charles Baker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm using tomcat 4.1.30 on Red Hat Linux w/ Sun JDK 1.4.2_03. In
catalina.sh one of the other admins has redirected standard out to a log
file so that we can capture some info that would ordinarily only be seen
at the console. What we would like to do is have the tomcat container
itself, not just a particular web application, use log4j to log it's
messages. Also, after the container is up and all webapps have been
deployed, we would like to lower the logging level of the container from
say INFO to FATAL. We are already doing this with JBoss but haven't been
able to figure a way to do this with tomcat. I've googled and looked at
the archives w/o finding anything relevant. Does anyone have a clue?


Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED]
Whatever you vividly imagine, ardently desire, sincerely believe and
enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer




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



Re: Logging in Apache Tomcat

2004-07-01 Thread Harald Henkel
Use log4j, I would say.

Robert Einsle wrote:
 
 Hello List,
 
 How do i make logging in JAkarta Tomcat applications??
 
 Does it exists an Howto for it??
 
 Thanks for help
 
 \Robert
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



RE: Logging

2004-02-20 Thread Yansheng Lin
No, I am doing it through log4j.  But would it interested in knowing anyone
using J2SE 1.5.0 beta logging API.  Heard it's the same as log4j in principle.

Thanks!

-Original Message-
From: David Evans [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 20, 2004 11:06 AM
To: Tomcat Users List
Subject: Logging


Hello All,

I am trying to get ideas on logging, general configurations, best
practices, etc. Currently i use the default tomcat configuration which
.
.
.
Is that correct? Is that how you do it? Other options? What if you
wanted to have multiple logs per application, say a database access log
and a security violation log, or some such?

Thanks

dave


-
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: Logging

2004-02-20 Thread Shapira, Yoav

Howdy,

No, I am doing it through log4j.  But would it interested in knowing
anyone
using J2SE 1.5.0 beta logging API.  Heard it's the same as log4j in
principle.

No significant changes were made to the java.util.logging API in J2SE
1.5.  The API is largely the same as in JDK 1.4.  And yes, it's very
similar to log4j in principle, not by coincidence, as large parts of it
were inspired by log4j ;)  Which IMHO is still superior, even for log4j
1.2.x.  Log4j 1.3 which will have an Alpha release once Ceki is back
will blow both our of the water.

Yoav Shapira



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

2004-02-20 Thread David Evans
So is log4j the industry standard for logging in tomcat apps? Is it
what you use?

dave


On Fri, 2004-02-20 at 13:54, Shapira, Yoav wrote:
 Howdy,
 
 No, I am doing it through log4j.  But would it interested in knowing
 anyone
 using J2SE 1.5.0 beta logging API.  Heard it's the same as log4j in
 principle.
 
 No significant changes were made to the java.util.logging API in J2SE
 1.5.  The API is largely the same as in JDK 1.4.  And yes, it's very
 similar to log4j in principle, not by coincidence, as large parts of it
 were inspired by log4j ;)  Which IMHO is still superior, even for log4j
 1.2.x.  Log4j 1.3 which will have an Alpha release once Ceki is back
 will blow both our of the water.
 
 Yoav Shapira
 
 
 
 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]
 


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



Re: Logging

2004-02-20 Thread epyonne
That's what we use.


- Original Message -
From: David Evans [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 20, 2004 02:02 PM
Subject: RE: Logging


 So is log4j the industry standard for logging in tomcat apps? Is it
 what you use?

 dave


 On Fri, 2004-02-20 at 13:54, Shapira, Yoav wrote:
  Howdy,
 
  No, I am doing it through log4j.  But would it interested in knowing
  anyone
  using J2SE 1.5.0 beta logging API.  Heard it's the same as log4j in
  principle.
 
  No significant changes were made to the java.util.logging API in J2SE
  1.5.  The API is largely the same as in JDK 1.4.  And yes, it's very
  similar to log4j in principle, not by coincidence, as large parts of it
  were inspired by log4j ;)  Which IMHO is still superior, even for log4j
  1.2.x.  Log4j 1.3 which will have an Alpha release once Ceki is back
  will blow both our of the water.
 
  Yoav Shapira
 
 
 
  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]
 


 -
 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: Logging

2004-02-20 Thread Shapira, Yoav

Howdy,

So is log4j the industry standard for logging in tomcat apps? Is it
what you use?

It's what I use, and I'd say there's no established industry standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.

Yoav Shapira




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

2004-02-20 Thread Nathan Maves
Where is the best resource on how to make your classes log4j compliant?

Nathan Maves
Sun Microsystems
On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote:

Howdy,

So is log4j the industry standard for logging in tomcat apps? Is it
what you use?
It's what I use, and I'd say there's no established industry standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.
Yoav Shapira



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]

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

Re: Logging

2004-02-20 Thread Adam Hardy
Nathan,
it seems from your signature that you're already at the right place. Or 
are you a troll?

Seriously though, log4j, like the other loggers, is an API that you code 
with - there's no compliancy involved.
Adam

On 02/20/2004 09:13 PM Nathan Maves wrote:
Where is the best resource on how to make your classes log4j compliant?

Nathan Maves
Sun Microsystems
On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote:

Howdy,

So is log4j the industry standard for logging in tomcat apps? Is it
what you use?


It's what I use, and I'd say there's no established industry standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.
Yoav Shapira



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]




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


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging

2004-02-20 Thread Nathan Maves
I have been waiting for someone to say that :)

I was just being lazy and looking for a easy example.

~N

On Feb 20, 2004, at 1:29 PM, Adam Hardy wrote:

Nathan,
it seems from your signature that you're already at the right place.  
Or are you a troll?

Seriously though, log4j, like the other loggers, is an API that you  
code with - there's no compliancy involved.
Adam

On 02/20/2004 09:13 PM Nathan Maves wrote:
Where is the best resource on how to make your classes log4j  
compliant?
Nathan Maves
Sun Microsystems
On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote:
Howdy,

So is log4j the industry standard for logging in tomcat apps? Is  
it
what you use?


It's what I use, and I'd say there's no established industry  
standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.

Yoav Shapira



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]
-- 
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
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: Logging of JK2 ISAPI connector

2004-02-10 Thread Krell, Andrew
With JK2 you set the log in the workers2.properties file.  Since you are
using ISAPI, you will want:
 
[logger.win32:]
Level=(EMERG,ERROR,INFO, or DEBUG)

According to the documentation, it normally ends at native Application
Event Log.  You can change the file location of some of the other loggers,
but I never had much success with changing the .win32 logger.  If you figure
that out, let me know.  

Andrew

-Original Message-
From: Michael Sudkamp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 6:13 AM
To: 'Tomcat Users List'
Subject: Logging of JK2 ISAPI connector


Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But
they seem not to work with JK2. I also tried logFile and logLevel.

Any ideas?

Michael


-
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: Logging of JK2 ISAPI connector

2004-02-10 Thread Sam Seaver
Just a note, though this only happened to me in Linux:

If the 'native Application Event Log' gets disrupted somehow, then it 
caused the connector to 'hang' and thus stopped all calls for jsp 
pages.  In Linux what happened to me every sunday was that the 
'logrotate' utiltiy would move my httpd.log to httpd.log.1, and then 
create a new httpd.log.  This was enough to cause my jk2 to stop 
responding...

Just so that you know.
S
Krell, Andrew wrote:

With JK2 you set the log in the workers2.properties file.  Since you are
using ISAPI, you will want:
[logger.win32:]
Level=(EMERG,ERROR,INFO, or DEBUG)
According to the documentation, it normally ends at native Application
Event Log.  You can change the file location of some of the other loggers,
but I never had much success with changing the .win32 logger.  If you figure
that out, let me know.  

Andrew

-Original Message-
From: Michael Sudkamp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 10, 2004 6:13 AM
To: 'Tomcat Users List'
Subject: Logging of JK2 ISAPI connector

Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But
they seem not to work with JK2. I also tried logFile and logLevel.
Any ideas?

Michael

-
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]
 



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


Re: Logging of JK2 ISAPI connector

2004-02-10 Thread Daniel Schmitt
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html

Default looging on win32 is in
Start - All Programs - Administrative Tools - Event Viewer
to change the loglevel put in your workers2.properties

# Default INFO Supported: EMERG, ERROR, INFO, DEBUG
[logger]
level=DEBUG
(your admin will hate you)

To write to an alternate file instead, add somthing like

# Alternate file logger
[logger.file:0]
level=DEBUG
file=C:\Program Files\Apache Group\Tomcat 4.1\logs\jk2.log
[workerEnv:]
info=Global server options
logger=logger.file:0
With IIS 6 you have to add jk2.log to the jakarta Web Service Extension
and give write Permission for Users at File Properties Security Tab
hope this helps

Michael Sudkamp wrote:

Hello,

I wonder how I can activate logging for the JK2 ISAPI connector?

With the old JK there were the registry keys log_file and log_level. But they seem not to work with JK2. I also tried logFile and logLevel.

Any ideas?

Michael

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



--
Daniel Schmitt
http://www.shiftomat.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Logging / Exception handling framework within Tomcat

2004-02-06 Thread Shapira, Yoav

Howdy,
You need to read the log4j documentation: that framework is far from
basic, very complete, and meets all your requirements.

Log4j supports modifying properties at runtime.  You can write your own
code following instructions to do this, or you can use the log4j
sandbox's configuration servlet.

Log4j also supports adding contextual information to every log message.
There are several approaches possible here, but MDC
(org.apache.log4j.MDC) is probably what you want.

If you have further specific questions feel free to ask on the
log4j-user mailing list.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Johannes [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 3:11 PM
To: [EMAIL PROTECTED]
Subject: Logging / Exception handling framework within Tomcat

hi there,

As of TC 4.x I know the following architecture exists for logging
within
an application:

From the very basic
*) System.out.println, which goes to catalina.out / stdout.log
*) e.printStackTrace(), which goes to catalina.out / stderr.log

up to more advanced:
*) using context.log() to write into the servlet context's log file
*) using Log4J to redirect log output to files / jdbc interfaces

However, in real life I found these approaches are very basic and not
sufficient:
*) If I want to debug, I usually want to debug complete transactions =
I
want to know what was stored inside the request, where did it come
from,
what was the content of the session, and what was the complete debug
logging of the whole transaction (including all methods called / walked
through).
I wrote a small framework to handle such transaction debug logs
completely. Is anybody else interested in this issue?

*) If an exception arises, the stacktrace in catalina.out is a
nightmare
to troubleshoot. To be productive in detecting runtime exceptions, one
needs a complete transaction log to know exactly what happened.
Complete transaction log means to me:
- complete data of the HttpServletRequest
- complete data of the HttpSession
- everything that might identify the user (Cookies, RemoteAddress,
Browser, ...)
- complete stacktrace

Additionally, I needed to turn on/off debugging during RUNTIME, which
currently is not supported using Log4J (because it stores its data
inside
properties files within the WAR file). I wrote a small Singleton to
support turning logging ON/OFF during runtime.

I'd appreciate if anybody else can share his thoughts on this topic.
Maybe
Log4J/the JDK Logging API provides options that I don't know of yet.

thx
Johannes



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 / Exception handling framework within Tomcat

2004-02-06 Thread Johannes
hi yoav,

I've been showing up here some months ago, and now you're still on your 
job answering the many answers here. I'm impressed...

I'll take a look into the Log4J.MDC - don't you think it would make sense 
to provide guidelines on how to log debugmessages and exceptions in 
servlet/jsp-apps (like the App Dev. Guide of Craig)? or is there already 
something at the log4j site you know of?

thx alot
Johannes

RE: Logging / Exception handling framework within Tomcat

2004-02-06 Thread Shapira, Yoav

Howdy,

I'll take a look into the Log4J.MDC - don't you think it would make
sense
to provide guidelines on how to log debugmessages and exceptions in
servlet/jsp-apps (like the App Dev. Guide of Craig)? or is there
already
something at the log4j site you know of?

There isn't something explicit: if you write something I'll put it on
the site ;)  It's fairly simple, though.  For example, if you want all
session and request attributes in the MDC, from a servlet, you would do:

// Populate MDC with request attributes
MDC.getContext().put(request.getParameterMap());
// Populate MDC with session attributes
Enumeration sAttributes = session.getAttributeNames();
String name;
while(sAttributes.hasMoreElements()) {
   name = sAttributes.nextElement();
   MDC.put(name, session.getAttribute(name));
}
// Log
logger.info(something);
// Clear MDC to save memory
MDC.getContext().clear();

There's a gotcha here, though.  You would need to declare those keys in
the MDC you want output to your log file by using %X{KeyName} in your
layout declaration.  Perhaps a modification to PatternLayout is needed
to output the entire MDC.  But anyways, that's to be discussed on the
log4j-user list if you're interested.

Yoav Shapira




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 and Tomcat 5.0.16

2004-01-11 Thread Jacob Kjome
At 02:44 PM 1/10/2004 -0800, you wrote:
Shapira, Yoav wrote:

1) Is there a reason why the startup.sh script that comes bundled with
Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH?  As far as
I can tell, it's the only script that uses it.
Yes, there's a good reason: tomcat internals use commons-logging to do
their logging.
Yes, but why put it in the CLASSPATH and not in /server/lib?  Doesn't this 
mean that any configuration would affect all webapps?
probably, except that Tomcat loads stuff from WEB-INF/lib and 
WEB-INF/classes before trying from the parent classloaders (opposite of 
normal Java2 classloading).  This is defined by the servlet spec and allows 
for applications to use their own libs even when the server contains its 
own duplicates.


2) Is there a recommended way to control what gets spewed into
catalina.out?  The fact that all the messages I'm getting have an INFO
tag would indicate that this should be possible.
Yes, add a commons-logging configuration file to common/classes, e.g. as
suggested in this link off the tomcat FAQ:
http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out
I saw that, and that has a config file for log4j, not commons-logging.
There is no way to actually filter the output through the commons-logging 
config file.  I'd like a way to only suppress catalina's output.
If I use a log4j.properties, it means I'd need to install log4j in 
/common/lib.  It also means that I have to specify all logging config info 
in /common/classes instead of on a per-webapp basis (see 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg113292.html).
Well, only if you don't put log4j.jar under WEB-INF/lib.  As stated above, 
if you do this, log4j.jar will load for your webapp even if a common one is 
available to other webapps.  Otherwise, you can also use a custom repositor 
selector
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerLogging


3) In any case, why doesn't Tomcat just come with commons-logging.jar
and log4j.jar bundled in /server/libs?
Tomcat does not want to tie you into a specific logging implementation,
e.g. log4j.  Tomcat wants to make its logging available to webapps by
default, so server/lib is not a possible location.
But doesn't this just lead to classloader hell?
Sometimes, yes.  commons-logging leads to classloader hell on its own no 
matter where you put it.  It's nothing but trouble, if you ask me.
http://www.qos.ch/logging/thinkAgain.html
http://radio.weblogs.com/0122027/2003/08/15.html


4) Is there a FAQ or HOWTO on recommended approaches to handling
logging
in Tomcat somewhere?
It won't hurt to search the archives of this list, there are many
answers there.  The link above also has some information.
I'm sorry, but I have searched the archives, and there just doesn't seem 
to be one conclusive answer.  I see a lot of e-mails talking about the use 
of commons-logging and how it causes all sorts of classloader wierdness.
We get it all too often on the Log4j-user list.  Users report Log4j isn't 
working and then proceed to provide a commons-logging config file.  There 
have been very few cases where Log4j itself was causing the problems.  I 
won't say it never does, but commons-logging seems to be the primary cause 
of issues in getting Log4j to work, not Log4j itself.

What I'm looking for is a way to specify logging configuration for 
catalina that is independent of any webapps I may have.

I don't want 1 log4j.properties for everything.  Is this possible?  If so, 
how?  I'd be more than happy to write up a HOW-TO if I could just figure 
this out, but I haven't stumbled across anything that works yet.
If you follow my advice above, you should be all set.  Separate logger 
repositories for each app, even though you provide log4j and a config file 
in a parent classloader.

Jake


Thanks,
-Mark


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


Re: Logging and Tomcat 5.0.16

2004-01-10 Thread Mark Woon
Shapira, Yoav wrote:

1) Is there a reason why the startup.sh script that comes bundled with
Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH?  As far as
I can tell, it's the only script that uses it.
Yes, there's a good reason: tomcat internals use commons-logging to do
their logging.
Yes, but why put it in the CLASSPATH and not in /server/lib?  Doesn't 
this mean that any configuration would affect all webapps?


2) Is there a recommended way to control what gets spewed into
catalina.out?  The fact that all the messages I'm getting have an INFO
tag would indicate that this should be possible.
Yes, add a commons-logging configuration file to common/classes, e.g. as
suggested in this link off the tomcat FAQ:
http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out
I saw that, and that has a config file for log4j, not commons-logging.  
There is no way to actually filter the output through the 
commons-logging config file.  I'd like a way to only suppress catalina's 
output. 

If I use a log4j.properties, it means I'd need to install log4j in 
/common/lib.  It also means that I have to specify all logging config 
info in /common/classes instead of on a per-webapp basis (see 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg113292.html).

3) In any case, why doesn't Tomcat just come with commons-logging.jar
and log4j.jar bundled in /server/libs?
Tomcat does not want to tie you into a specific logging implementation,
e.g. log4j.  Tomcat wants to make its logging available to webapps by
default, so server/lib is not a possible location.
But doesn't this just lead to classloader hell?


4) Is there a FAQ or HOWTO on recommended approaches to handling
logging
in Tomcat somewhere?
It won't hurt to search the archives of this list, there are many
answers there.  The link above also has some information.
I'm sorry, but I have searched the archives, and there just doesn't seem 
to be one conclusive answer.  I see a lot of e-mails talking about the 
use of commons-logging and how it causes all sorts of classloader 
wierdness.

What I'm looking for is a way to specify logging configuration for 
catalina that is independent of any webapps I may have.

I don't want 1 log4j.properties for everything.  Is this possible?  If 
so, how?  I'd be more than happy to write up a HOW-TO if I could just 
figure this out, but I haven't stumbled across anything that works yet.

Thanks,
-Mark


RE: Logging and Tomcat 5.0.16

2004-01-05 Thread Shapira, Yoav

Howdy,

1) Is there a reason why the startup.sh script that comes bundled with
Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH?  As far as
I can tell, it's the only script that uses it.

Yes, there's a good reason: tomcat internals use commons-logging to do
their logging.

2) Is there a recommended way to control what gets spewed into
catalina.out?  The fact that all the messages I'm getting have an INFO
tag would indicate that this should be possible.

Yes, add a commons-logging configuration file to common/classes, e.g. as
suggested in this link off the tomcat FAQ:
http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out

3) In any case, why doesn't Tomcat just come with commons-logging.jar
and log4j.jar bundled in /server/libs?

Tomcat does not want to tie you into a specific logging implementation,
e.g. log4j.  Tomcat wants to make its logging available to webapps by
default, so server/lib is not a possible location.

4) Is there a FAQ or HOWTO on recommended approaches to handling
logging
in Tomcat somewhere?

It won't hurt to search the archives of this list, there are many
answers there.  The link above also has some information.

Yoav Shapira



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]



  1   2   3   >