You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marcel Stör <ma...@frightanic.com> on 2012/02/14 22:49:13 UTC

Logging issue in Eclipse/WTP (disable request logging)

It seems nowadays you need a PHD just to understand Tomcat 
logging...sigh. In one of my Eclipse/WTP projects Tomcat logs each 
request (before and after):

...
13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
INFO: After request 
[uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null]
13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
INFO: After request [uri=/demo-webmvc-web/images/logo.gif?null]
...

How do I get rid of this?

Cheers,
Marcel

-- 
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging issue in Eclipse/WTP (disable request logging)

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/2/15 Pid <pi...@pidster.com>:
> On 14/02/2012 21:49, Marcel Stör wrote:
>> It seems nowadays you need a PHD just to understand Tomcat
>> logging...sigh. In one of my Eclipse/WTP projects Tomcat logs each
>> request (before and after):
>>
>> ...
>> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
>> INFO: After request
>> [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
>> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
>> INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null]
>> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
>> INFO: After request [uri=/demo-webmvc-web/images/logo.gif?null]
>> ...
>>
>> How do I get rid of this?
>
> Tomcat doesn't log an INFO level output for that - have you by any
> chance got a Servlet Filter in your application?
>

One more.
If  Tomcat logging is indeed used, then any logging.properties file in
the classpath will change logging configuration for the classloader
that it is accessible from.

Here is such problem reported caused by jollyday library that
contained a logging.properties file:
https://issues.apache.org/bugzilla/show_bug.cgi?id=52011

This feature is usually used by web applications when they provide
their own WEB-INF/classes/logging.properties file.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging issue in Eclipse/WTP (disable request logging)

Posted by Pid <pi...@pidster.com>.
On 14/02/2012 21:49, Marcel Stör wrote:
> It seems nowadays you need a PHD just to understand Tomcat
> logging...sigh. In one of my Eclipse/WTP projects Tomcat logs each
> request (before and after):
> 
> ...
> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
> INFO: After request
> [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
> INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null]
> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
> INFO: After request [uri=/demo-webmvc-web/images/logo.gif?null]
> ...
> 
> How do I get rid of this?

Tomcat doesn't log an INFO level output for that - have you by any
chance got a Servlet Filter in your application?


p



-- 

[key:62590808]


Re: Logging issue in Eclipse/WTP (disable request logging)

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/2/15 Marcel Stör <ma...@frightanic.com>:
> On 14.02.2012 22:57, Christopher Schultz wrote:
>>>
>>> In one of my Eclipse/WTP projects Tomcat logs each request (before
>>> >  and after):
>>> >
>>> >  ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
>>> >  log INFO: After request
>>> >  [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
>>> >
>>> >
>>
>> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
>>>
>>> >  INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null]
>>> >  13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
>>> >  log INFO: After request
>>> >  [uri=/demo-webmvc-web/images/logo.gif?null] ...
>>> >
>>> >  How do I get rid of this?
>>
>> That depends. In what log file does this appear? What version of
>> Tomcat are you using?
>
>
> I see those statements in the Eclipse console (sys error) and I'm using
> Tomcat 7.0.19. Sorry, this was crucial information I forget to provide.
>

You have to look at the JVM arguments that are used to launch Tomcat.

That should be on the Servers view -> click the server there so that
it opens some pretty page with its configuration. On that page there
will be a link to "launch configuration". Click it and see that it
displays.

You have to look for
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
and
-Djava.util.logging.config.file= <some path>

If there is no "-Djava.util.logging.manager" setting then the logging
is done by your JRE, not by Tomcat.

If it is there, then you will see what configuration file it uses.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging issue in Eclipse/WTP (disable request logging)

Posted by Marcel Stör <ma...@frightanic.com>.
On 14.02.2012 22:57, Christopher Schultz wrote:
>> In one of my Eclipse/WTP projects Tomcat logs each request (before
>> >  and after):
>> >
>> >  ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
>> >  log INFO: After request
>> >  [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
>> >
>> >
> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
>> >  INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null]
>> >  13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
>> >  log INFO: After request
>> >  [uri=/demo-webmvc-web/images/logo.gif?null] ...
>> >
>> >  How do I get rid of this?
> That depends. In what log file does this appear? What version of
> Tomcat are you using?

I see those statements in the Eclipse console (sys error) and I'm using 
Tomcat 7.0.19. Sorry, this was crucial information I forget to provide.

Marcel

-- 
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging issue in Eclipse/WTP (disable request logging)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcel,

On 2/14/12 4:49 PM, Marcel Stör wrote:
> It seems nowadays you need a PHD just to understand Tomcat 
> logging...sigh.

Does that mean that I can get an honorary PhD if I understand it?

> In one of my Eclipse/WTP projects Tomcat logs each request (before
> and after):
> 
> ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
> log INFO: After request 
> [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]
>
> 
13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log
> INFO: Before request [uri=/demo-webmvc-web/images/logo.gif?null] 
> 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext
> log INFO: After request
> [uri=/demo-webmvc-web/images/logo.gif?null] ...
> 
> How do I get rid of this?

That depends. In what log file does this appear? What version of
Tomcat are you using?

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

iEYEARECAAYFAk862LwACgkQ9CaO5/Lv0PC8fQCfYWdMLTXsNM2fqFtKFVwUEc9a
+3UAn2Y1hftX5q4ZvGhKxWJQF98kr9uX
=88sc
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org