tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 飞翔鸟 <fxbird1...@163.com>
Subject Re:Re: How to get the tomcat internal log out?
Date Fri, 25 Nov 2011 03:14:26 GMT
Hello :

    Why tomcat 7? Are there some features which can make  classes updated without restart
tomcat?
  

   Thanks .



At 2011-11-24 00:04:06,"Christopher Schultz" <chris@christopherschultz.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Konstantin,
>
>On 11/21/11 7:00 AM, Konstantin Kolinko wrote:
>> 2011/11/21 Kurt <fxbird1978@163.com>:
>>> Hello all:
>>> 
>>> I compile tomcat 5.5.30 and import it to eclipse as a project, to
>>> research how the tomcat load class , I need to view the running
>>> log ,after reading through this
>>> post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and 
>>> adding below log4j.properties to the direcotry 'common/classes'
>>> and log4j-1.26.jar to common/lib, logs turned out not to be
>>> generated when I debug the tomcat starting from class Catalina.
>>> No idea about it, I've tried many times.
>>> 
>>> log4j.rootLogger=DEBUG,R 
>>> log4j.appender.R=org.apache.log4j.RollingFileAppender 
>>> log4j.appender.R.File=k:\\logs\\tomcat.log 
>>> log4j.appender.R.MaxFileSize=10MB 
>>> log4j.appender.R.MaxBackupIndex=10 
>>> log4j.appender.R.layout=org.apache.log4j.PatternLayout 
>>> log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n 
>>> log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG,
>>>
>>> 
>R
>>> log4j.logger.org.apache.catalina.core=DEBUG, R 
>>> log4j.logger.org.apache.catalina.session=DEBUG, R
>>> 
>>> And the program parameter I use is 'start', vm parameter is 
>>> '-Dcatalina.home="I:\My 
>>> Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30"'
>>>
>>> 
>Any ideas? Thanks
>>> 
>
>0. Is there a reason why the OP is trying to use Tomcat 5.5 instead of
>Tomcat 7?
>
>> 1. Is there a reason why you are trying to use log4j? That is not 
>> default configuration for Tomcat logging. The default one is JULI. 
>> (Though you have to remove log4.jar from Tomcat if you want JULI to
>> work).
>
>- -chris
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
>Comment: GPGTools - http://gpgtools.org
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
>iEYEARECAAYFAk7NGXYACgkQ9CaO5/Lv0PCN/ACgucGIyR8+8qLjAcejpyuDzxN6
>r+cAoJCeXdgeK5cEhUFyCfAybjll4XUy
>=734m
>-----END PGP SIGNATURE-----
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message