You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kevin Gutch <kg...@protechemail.com> on 2007/03/20 14:42:15 UTC

Logging

Hello,

If I place a  logging.properties in my context/WEB-INF/classes I seem to 
get the correct logging information in my log file. However, the output 
also seems to get the catalina.out. I really only want it in the context 
specific. Is there something else to configure to prevent it going to 
the catalina.out?

Thanks,
Kevin

Re: Logging

Posted by reno <re...@free.fr>.

> > If I place a  logging.properties in my context/WEB-INF/classes I  
> > seem to get the correct logging information in my log file.  
> > However, the output also seems to get the catalina.out. I really  
> > only want it in the context specific. Is there something else to  
> > configure to prevent it going to the catalina.out?
> 
> Changing to log4j doesn't actually answer your question. 

It does not answer to his question but it will be more powerful to use
log4j...
it was just a tip, not an obligation :-)

>  Can you  
> show us your logging.properties file as you more than likely have the  
> following line;
> 
> java.util.logging.ConsoleHandler.level = FINE
> 
> Change it to something like
> 
> java.util.logging.ConsoleHandler.level = SEVERE
> 
> to prevent any message below SEVERE appearing in catalina.out.  Maybe  
> you can use NONE, but I'm not sure if that's valid - anyone?
> 



Re: Logging

Posted by Darren <da...@googlemail.com>.
> If I place a  logging.properties in my context/WEB-INF/classes I  
> seem to get the correct logging information in my log file.  
> However, the output also seems to get the catalina.out. I really  
> only want it in the context specific. Is there something else to  
> configure to prevent it going to the catalina.out?

Changing to log4j doesn't actually answer your question.  Can you  
show us your logging.properties file as you more than likely have the  
following line;

java.util.logging.ConsoleHandler.level = FINE

Change it to something like

java.util.logging.ConsoleHandler.level = SEVERE

to prevent any message below SEVERE appearing in catalina.out.  Maybe  
you can use NONE, but I'm not sure if that's valid - anyone?


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


Re: Logging

Posted by reno <re...@free.fr>.

> I had planned on using commons logging.. Would you recommend log4j over 
> commons logging.

YES !!

but you can also define which logger commons logging will use if you
want...
check this
http://jakarta.apache.org/commons/logging/guide.html#Quick_Start

Regards 
F


> 
> reno wrote:
> > if yuo are using log4j, put a log4j.properties in your
> > <webapp>/WEB-INF/classes/ folder
> > then, follow this nice tutorial
> > http://www.vipan.com/htdocs/log4jhelp.html
> >
> > regards
> > S.
> >
> >   
> >> Hello,
> >>
> >> If I place a  logging.properties in my context/WEB-INF/classes I seem to 
> >> get the correct logging information in my log file. However, the output 
> >> also seems to get the catalina.out. I really only want it in the context 
> >> specific. Is there something else to configure to prevent it going to 
> >> the catalina.out?
> >>
> >> Thanks,
> >> Kevin
> >>     
> >
> >   
> 

Re: Logging

Posted by Kevin Gutch <kg...@protechemail.com>.
I had planned on using commons logging.. Would you recommend log4j over 
commons logging.

reno wrote:
> if yuo are using log4j, put a log4j.properties in your
> <webapp>/WEB-INF/classes/ folder
> then, follow this nice tutorial
> http://www.vipan.com/htdocs/log4jhelp.html
>
> regards
> S.
>
>   
>> Hello,
>>
>> If I place a  logging.properties in my context/WEB-INF/classes I seem to 
>> get the correct logging information in my log file. However, the output 
>> also seems to get the catalina.out. I really only want it in the context 
>> specific. Is there something else to configure to prevent it going to 
>> the catalina.out?
>>
>> Thanks,
>> Kevin
>>     
>
>   

-- 

*Kevin Gutch*
*Protech Products, Inc*.
407.328.5300, ext. 102
407.328.5250 (fax)



Re: Logging

Posted by reno <re...@free.fr>.
if yuo are using log4j, put a log4j.properties in your
<webapp>/WEB-INF/classes/ folder
then, follow this nice tutorial
http://www.vipan.com/htdocs/log4jhelp.html

regards
S.

> Hello,
> 
> If I place a  logging.properties in my context/WEB-INF/classes I seem to 
> get the correct logging information in my log file. However, the output 
> also seems to get the catalina.out. I really only want it in the context 
> specific. Is there something else to configure to prevent it going to 
> the catalina.out?
> 
> Thanks,
> Kevin