You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by To...@thomson.com on 2006/08/18 17:39:25 UTC
turning logging on for JSF on tomcat 5.0.28
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
SET
CATALINA_OPTS=-Djava.util.logging.config.file=C:\Java\jakarta-tomcat-5.0
.28\conf\logging.properties
2. Coppied the logging.properties file from jre\lib to tomcat\conf
directory
3. Changed the following properties in the logging.properties from INFO
to FINEST
.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
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.
Thanks
RE: turning logging on for JSF on tomcat 5.0.28
Posted by To...@thomson.com.
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
log4j.properties so I added the following lines
log4j.logger.com.sun trace
log4j.logger.com.sun.faces.application.ViewHandlerImpl trace
log4j.logger.com.sun.faces.lifecycle 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
Tolga
-----Original Message-----
From: Boris Unckel [mailto:boris.unckel.mlg@gmx.net]
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,
Tolga.Umut@thomson.com 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
>
> SET
> CATALINA_OPTS=-Djava.util.logging.config.file=C:\Java\jakarta-tomcat-5
> .0
> .28\conf\logging.properties
>
> 2. Coppied the logging.properties file from jre\lib to tomcat\conf
> directory
>
> 3. Changed the following properties in the logging.properties from
> INFO to FINEST
>
> .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 logging.properties 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,
java.util.logging.ConsoleHandler
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.
Regards
Boris
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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: turning logging on for JSF on tomcat 5.0.28
Posted by Boris Unckel <bo...@gmx.net>.
Hello Tolga,
Tolga.Umut@thomson.com 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
>
> SET
> CATALINA_OPTS=-Djava.util.logging.config.file=C:\Java\jakarta-tomcat-5.0
> .28\conf\logging.properties
>
> 2. Coppied the logging.properties file from jre\lib to tomcat\conf
> directory
>
> 3. Changed the following properties in the logging.properties from INFO
> to FINEST
>
> .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 logging.properties 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, java.util.logging.ConsoleHandler
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.
Regards
Boris
---------------------------------------------------------------------
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: Changing IP address..
Posted by Mark Thomas <ma...@apache.org>.
Atul Govande wrote:
> How do I change IP address automatically in Server.XMl and httpd.conf and
> worker.properties file. Case Scenario: I have working Apache Tomcat running
> on server Name 10.31.5.xxx. I have changed my network and new server name is
> 10.31.10.xxx. What is the best way for seamless migration form old
> 10.31.5.xxx to 10.31.10.xxx address without modifying Server or httpd or
> worker properties file? Is it possible ? if yes how ?
> Any suggestion is appricaiated.Currently I am manually changing all the
> files.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.
This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.
The correct procedure is to create a new message with a new subject.
This will start a new thread.
Mark
tomcat-user-owner
---------------------------------------------------------------------
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
Changing IP address..
Posted by Atul Govande <ag...@deltatau.com>.
How do I change IP address automatically in Server.XMl and httpd.conf and
worker.properties file. Case Scenario: I have working Apache Tomcat running
on server Name 10.31.5.xxx. I have changed my network and new server name is
10.31.10.xxx. What is the best way for seamless migration form old
10.31.5.xxx to 10.31.10.xxx address without modifying Server or httpd or
worker properties file? Is it possible ? if yes how ?
Any suggestion is appricaiated.Currently I am manually changing all the
files.
Best Regards,
Atul Govande
818 717 5621
NOTE: Please note that Delta Tau no longer allows the sending or receiving
of attachments with the extension .ZIP or .EXE. Please rename all .ZIP
attachments to .ZZZ. Please zip all .EXE attachments and then rename them to
.ZZZ. If you receive an attachment named .ZZZ please rename it to .ZIP.
Sorry for the inconvenience.
---------------------------------------------------------------------
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: turning logging on for JSF on tomcat 5.0.28
Posted by Martin Gainty <mg...@hotmail.com>.
To enable and configure logging in Tomcat look at
http://dspace.dsto.defence.gov.au/tomcat-docs/logging.html
Martin--
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
>
>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
>
>SET
>CATALINA_OPTS=-Djava.util.logging.config.file=C:\Java\jakarta-tomcat-5.0
>.28\conf\logging.properties
>
>2. Coppied the logging.properties file from jre\lib to tomcat\conf
>directory
>
>3. Changed the following properties in the logging.properties from INFO
>to FINEST
>
>.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
>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.
>
>Thanks
---------------------------------------------------------------------
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