Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » How to use the Log View to a view a server's log file
How to use the Log View to a view a server's log file [message #90672] Thu, 21 December 2006 19:53 Go to next message
Dan van Leeuwen is currently offline Dan van LeeuwenFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I am looking into using TPTP's log viewer to view a server's log file. I am
wondering what the right approach for this problem would be?

SCENARIO
We have server's running on a remote machine's that multiple users can
connect to and manage within Eclipse. I would like to allow the user's to
right click on a node and choose "View Log" which would then display the
server's log file in the TPTP "Log View".

ATTEMPT 1
I followed the instructions at
http://help.eclipse.org/help32/topic/org.eclipse.tptp.monito ring.doc.isv/tasks/tcreatingregexadapter.html
to create a rule-based adapter which translates the log file into the CBE
format.

ISSUES/PROBLEMS ENCOUNTERED
This appeared to work ok, except that the log was not updated in real time.
To get the latest version of the log file, it would need to be reimported.

Right clicking on the log file in the log navigator and choosing "Refresh ->
Refresh contents from the file system" appears to remove the log file.
Perhaps the refresh menu item should not be displayed in this case?

I did not want the user to work through the Import Log Wizard (to keep
things simpler for them) but would rather have them simply choose the server
in our management tree that they have connected to and choose "View Log". I
was able to get this to work but reused/copied sections of
org.eclipse.tptp.monitoring.logui.internal.wizards.ImportLog Wizard. Using
internal classes in general is not ideal. Is there another way to do this?


ATTEMPT 2
I then followed the instructions at
http://help.eclipse.org/help32/topic/org.eclipse.tptp.monito ring.doc.isv/tasks/tmonitorapp.html
to configure the above rule-based adapter to allow for live application
monitoring.

ISSUES/PROBLEMS ENCOUNTERED
It seems that only one client can profile or attach to the logging agent.
As well, the profiling monitor allows the adapter to be terminated. How
does one configure a live logging adapter to create new agents when needed
for incoming requests to view a log?

Is there a way to display the log in the Log View without having the user
choose Project->Filter->Attach - Java Process->Fill in host and
port->Profile->Start Monitoring. I am trying to make things somewhat
simpler for the end user.



Thanks in advance for your help,

Dan van Leeuwen
Re: How to use the Log View to a view a server's log file [message #91143 is a reply to message #90672] Thu, 11 January 2007 16:49 Go to previous message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 005C72D285257260_=
Content-Type: text/plain; charset="US-ASCII"

Hi Dan,

I think you'd be interested in this enhancement that I opened a while ago.
It hasn't been getting any attention so I don't think it'll be
implemented any time soon. You can add yourself to the CC list and vote
for it to increase its chances of getting implemented. You can also
comment on how this would be useful to you in the enhancement report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=136910

Navid Mehregani
--=_alternative 005C72D285257260_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi Dan,</font>
<br>
<br><font size=2 face="sans-serif">I think you'd be interested in this
enhancement that I opened a while ago. &nbsp;It hasn't been getting any
attention so I don't think it'll be implemented any time soon. &nbsp;You
can add yourself to the CC list and vote for it to increase its chances
of getting implemented. &nbsp;You can also comment on how this would be
useful to you in the enhancement report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=136910</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 005C72D285257260_=--
Previous Topic:"Exception in thread "main" java.lang.NoClassDefFoundError: " while profiling
Next Topic:multiple instances of the same view
Goto Forum:
  


Current Time: Thu Apr 25 15:34:33 GMT 2024

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

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

Back to the top