tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: turning logging on for JSF on tomcat 5.0.28
Date Fri, 18 Aug 2006 18:44:50 GMT
Hi Boris,

Thanks for the prompt response,

We have log4j in the project that we are deploying to tomcat, so I tried
your solution without taking out the log4j from our classpath and wanted
to see what happens. And there was not much, the same result.  Then a
friend of mine suggested configuring the JSF logging using the so I added the following lines 				        trace  trace        trace

And it started working even though took out CATALINA_OPTS setting from
the Catalina.bat file.

This is all mind boggling to me, because supposed the java.util.logging
is not compatible with log4j.

I guess I just can say its JSF, and will look into how this can be
possible later.

Thanks again


-----Original Message-----
From: Boris Unckel [] 
Sent: Friday, August 18, 2006 11:12 AM
To: Tomcat Users List
Subject: Re: turning logging on for JSF on tomcat 5.0.28

Hello Tolga, wrote:
> Hi,
> I am trying to turn on the logging for JSF, and output the logs to 
> catalina_log.txt in tomcat 5.0.28. Below are the steps that I have 
> taken to no avail.
> 1. Updated catalina.bat with
> CATALINA_OPTS=-Djava.util.logging.config.file=C:\Java\jakarta-tomcat-5
> .0
> .28\conf\
> 2. Coppied the file from jre\lib to tomcat\conf 
> directory
> 3. Changed the following properties in the from 
> .level= FINEST
> java.util.logging.ConsoleHandler.level = FINEST
> And added
> com.sun.faces.level=FINEST
> After taking these steps tomcat starts to log to the console but not 
> to the catalina_log.txt.
> And I have the following questions
> 1. I was wondering how can I direct the logs to catalina_out.txt 
> rather then the console
The default JDK only log to the console. There is an
additional line (commented out) which allows you to use the
java.util.logging.FileHandler additionally:
# "handlers" specifies a comma separated list of log Handler # classes.
These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only # show
messages at the INFO and above levels.
handlers= java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
#handlers= java.util.logging.FileHandler,

Also specifiy
java.util.logging.FileHandler.pattern = %h/java%u.log with the correct
path to your logging directory and a better name for it.
> 2. Also JSF uses java.util.logging to do its logging, I was wondering 
> also how can I turn on the this logging in tomcat.
If this is a default installation and no other apps are running in it,
you just have to remove any log4j.jars from the classpath.


To start a new topic, e-mail: To unsubscribe,
For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message