You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kurt <fx...@163.com> on 2011/11/21 04:35:03 UTC
How to get the tomcat internal log out?
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 log.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
project 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
Kurt Xu
Re: How to get the tomcat internal log out?
Posted by Kurt <fx...@163.com>.
sorry guy:
The properties name is log4j.properties, I just made a written mistake.
This is my first shot in this mailing list, so please forgive me for the
wrong place. I'll repost it in users@, thanks. Nice day.
Kurt Xu
在 Mon, 21 Nov 2011 15:33:38 +0800,Konstantin Kolinko
<kn...@gmail.com> 写道:
> 2011/11/21 Kurt <fx...@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
>> log.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 project
>> 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
>
> 1. Your question is offtopic on dev@. You should ask on users@.
> 2. "log.properties" is wrong name for a log4j configuration file.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: How to get the tomcat internal log out?
Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/11/21 Kurt <fx...@163.com>:
> Hello guy:
>
> Do you really think I should post the question to users@? Cause I don't
> want to see the log of web app ,but tomcat's itself.
dev@ is about development of Tomcat itself.
Everything else is users@.
You are not proposing a patch for Tomcat. You are asking some question
on how to use it. Thus it belongs to uses@
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: How to get the tomcat internal log out?
Posted by Kurt <fx...@163.com>.
Hello guy:
Do you really think I should post the question to users@? Cause I don't
want to see the log of web app ,but tomcat's itself.
在 Mon, 21 Nov 2011 15:33:38 +0800,Konstantin Kolinko
<kn...@gmail.com> 写道:
> 2011/11/21 Kurt <fx...@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
>> log.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 project
>> 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
>
> 1. Your question is offtopic on dev@. You should ask on users@.
> 2. "log.properties" is wrong name for a log4j configuration file.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: How to get the tomcat internal log out?
Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/11/21 Kurt <fx...@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
> log.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 project
> 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
1. Your question is offtopic on dev@. You should ask on users@.
2. "log.properties" is wrong name for a log4j configuration file.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org