|change logging levels of WTP in Eclipse console [message #180540]
||Wed, 04 October 2006 19:26
Originally posted by: dennisryan.avaya.com|
Where can I find the log level settings for WTP/JST when starting my app
server (Tomcat 5.5) and the log shows up in the eclipse console view. I want
to change it to show FINER level of messages.
Where can I find the properties file to make this change.
Thanks in advance,
|Re: change logging levels of WTP in Eclipse console [message #180571 is a reply to message #180558]
||Thu, 05 October 2006 01:02
| Larry Isaacs
Registered: July 2009
Sorry, it has been a while since I had done this. There is a little |
manual configuration needed beyond importing the logging.properties file
to get this working. Double-click on the server in the Servers view,
then click "Open launch configuration" in the server editor that opens.
In the launch configuration dialog, switch to the Arguments tab and in
the "VM Arguments" field add the following system properties with
-Djava.util.logging.config.file="<copy of catalina.base path goes
Apply the changes and then close the dialog. When you run the server
the JULI logging should work.
The Console view simply displays the stdout and stderr streams from the
server process. Since the default handlers, i.e. the ".handlers"
setting, in the logging.properties file includes the ConsoleHandler, you
should continue to see the same output in the Console view as before.
The same output would be recorded in the catalina.???.log as well. You
can also add the ConsoleHander to any of the other
"org.apache....handlers=" specifications to have its output go to the
Console view too.
There has a fair amount of variation in how logging is configured in the
various Tomcat versions, so this isn't something that the Tomcat support
in Web Tools currently handles. You have to manually configure the
logging for the Tomcat server using what facilities Web Tools provides,
such as the launch configuration dialog. You could use log4j instead,
but I think JULI may be a little easier to get running and is what
Tomcat 5.5 uses by default.
Dennis Ryan wrote:
> Thanks Larry I have read about this once before, this will override the
> logging completely and it will no longer be shown in the Console view of
> Is there a way to use your own custom logging file as you suggest and still
> have it use the eclipse console view for ease of viewing purposes?
> Thanks again,
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> You can try manually importing the logging.properties file found in the
>> "conf" directory of your Tomcat 5.5 installation into the appropriate
>> subfolder of the Servers project in your workspace. Modifying that file
>> should let you control the JULI logging implementation that comes with
>> Tomcat 5.5. You can find additional configuration details here:
>> Dennis Ryan wrote:
>>> Where can I find the log level settings for WTP/JST when starting my app
>>> server (Tomcat 5.5) and the log shows up in the eclipse console view. I
>>> want to change it to show FINER level of messages.
>>> Where can I find the properties file to make this change.
>>> Thanks in advance,
Powered by FUDForum
. Page generated in 0.01676 seconds