Bug 43816 - [patch] java logging view [misc]
Summary: [patch] java logging view [misc]
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2003-09-29 07:05 EDT by Piri Babuscov CLA
Modified: 2012-07-11 09:27 EDT (History)
4 users (show)

See Also:


Attachments
Basic implementation of a logging console (16.13 KB, application/octet-stream)
2005-09-04 01:02 EDT, Brock Janiczak CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piri Babuscov CLA 2003-09-29 07:05:23 EDT
Hi

A java logging view would be interesting in java perspective and to offer 
message filtering, coloring, etc.

Best regards
piri
Comment 1 Dirk Baeumer CLA 2003-09-30 03:41:21 EDT
What do you mean by "Java logging view". Which log should the view show ?
Comment 2 Piri Babuscov CLA 2003-09-30 03:53:09 EDT
I mean the logger from JDK (java.util.logging); something like LogFactor for 
log4j.

br
piri
Comment 3 Dirk Baeumer CLA 2003-09-30 08:57:01 EDT
This would be an excelent thrid party opportunity.
Comment 4 Brock Janiczak CLA 2005-08-20 19:03:43 EDT
I have started working on a console for the J2SE logger.  It is quite basic at
the moment (just a proof of concept).  So far it just starts a server thread to
process the log events and prints them as text to a console.  It would be
possible to add filtering of logging events and colouring based off severity. 
It would also be possible to have custom formatting of the events.

Basically when a console page is opened it will spawn off a thread that opens a
server socket and starts listening (with a set port number).  Server control
actions would be exposed as actions on the console page (stop and start).

Before I waste too much more time on this, is this something JDT really wants to
add to the SDK?  It would be possible to distribute it as a standalone plugin,
but it could be quite powerful if it was a part of the SDK.  For instance, a new
server could be automatically started when a Java program is debugged (and
logging options turned on).

I have a patch to expose logging options in bug 86749 but I don't know it will
be added to the SDK.  If the two functions were combined it could be quite useful.
Comment 5 Dirk Baeumer CLA 2005-08-22 04:48:09 EDT
A console for J2SE logging should IMO be integrated into the console view
framework. We shouldn't come up with a separate view part for this. 

Moving to Debug since a J2SE logging view should be hosted there. Darin, can you
please comment on this.
Comment 6 Brock Janiczak CLA 2005-09-04 01:02:29 EDT
Created attachment 26821 [details]
Basic implementation of a logging console

A *very* basic implementation of a logging console.  Creating a console will
start a server on port 9999 which will only accept one connection at a time. 
The implementation uses MessageConsole but should be changed to use its own
console page and source viewer (and associated document).

I will make the implementation more robust and add new features if there is
enough interest (haven't seen much so far).
Comment 7 Darin Wright CLA 2005-10-24 10:54:14 EDT
Just updating to say we still have not had time to review this contribution.
Comment 8 Darin Wright CLA 2005-12-19 11:12:44 EST
Deferred for post 3.2 (limited resources)
Comment 9 Brock Janiczak CLA 2006-06-08 18:29:12 EDT
any chance this will be looked at in 3.3?
Comment 10 Darin Wright CLA 2006-06-09 08:34:51 EDT
Currently, this is not on our radar. If you would like to update the patch to ensure it is 3.2 compatible (for 3.3) and of high quality, we can likely review it as a contribution.
Comment 11 Michael Rennie CLA 2007-06-25 16:25:34 EDT
reopening