Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » change logging levels of WTP in Eclipse console
change logging levels of WTP in Eclipse console [message #180540] Wed, 04 October 2006 19:26 Go to next message
Eclipse UserFriend
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,
Dennis
Re: change logging levels of WTP in Eclipse console [message #180549 is a reply to message #180540] Wed, 04 October 2006 20:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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:

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

Cheers,
Larry

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,
> Dennis
>
>
Re: change logging levels of WTP in Eclipse console [message #180558 is a reply to message #180549] Wed, 04 October 2006 21:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dennisryan.avaya.com

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
Eclipse...

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,

Dennis

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:eg145l$fvf$1@utils.eclipse.org...
> 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:
>
> http://tomcat.apache.org/tomcat-5.5-doc/logging.html
>
> Cheers,
> Larry
>
> 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,
>> Dennis
Re: change logging levels of WTP in Eclipse console [message #180571 is a reply to message #180558] Thu, 05 October 2006 01:02 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
appropriate edits:

-Djava.util.logging.config.file="<copy of catalina.base path goes
here>\conf\logging.properties"
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager

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.

Cheers,
Larry

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
> Eclipse...
>
> 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,
>
> Dennis
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:eg145l$fvf$1@utils.eclipse.org...
>> 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:
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/logging.html
>>
>> Cheers,
>> Larry
>>
>> 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,
>>> Dennis
>
>
Previous Topic:WS and SOAP 1.2
Next Topic:Web features missing despite WST/JST
Goto Forum:
  


Current Time: Wed Apr 24 15:28:32 GMT 2024

Powered by FUDForum. Page generated in 0.04388 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top