Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Events posted to the Error Log View are not being shown under an RCP app?
Events posted to the Error Log View are not being shown under an RCP app? [message #28210] Tue, 21 October 2008 18:51
Eclipse UserFriend
Originally posted by: roberto.notesdev.ibm.com

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

Hello,

I'm showing the Error Log View in my RCP application and it's visible on
the screen, but the following code does not seem to add entries to it:

private static ILog _log = ScriptEditorPlugin.
getDefault().getLog();

public static void logDebug(int severity, int code, String
message)
{
String trace = Thread.currentThread
().getStackTrace().toString();
Status status = new Status(severity, _pluginID,
message + "\n\n" + trace);
_log.log(status);
}

Is there something other than showing the view that I need to do to have
it work properly (e.g. manifest modifications?)

Thank you,
Robert

--=_alternative 006790E6852574E9_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I'm showing the Error Log View in my
RCP application and it's visible on the screen, but the following code
does not seem to add entries to it:</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>private</b></font><font size=2 face="Courier New">
</font><font size=2 color=#820040 face="Courier New"><b>static</b></font><font size=2 face="Courier New">
ILog &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#0021bf face="Courier New"><i>_log</i></font><font size=2 face="Courier New">
= ScriptEditorPlugin.<i>getDefault</i>().getLog();</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>public</b></font><font size=2 face="Courier New">
</font><font size=2 color=#820040 face="Courier New"><b>static</b></font><font size=2 face="Courier New">
</font><font size=2 color=#820040 face="Courier New"><b>void</b></font><font size=2 face="Courier New">
logDebug(</font><font size=2 color=#820040 face="Courier New"><b>int</b></font><font size=2 face="Courier New">
severity, </font><font size=2 color=#820040 face="Courier New"><b>int</b></font><font size=2 face="Courier New">
code, String message)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; {</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String
trace = Thread.<i>currentThread</i>().getStackTrace().toString(); </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Status
status = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
Status(severity, </font><font size=2 color=#0021bf face="Courier New"><i>_pluginID</i></font><font size=2 face="Courier New">,
message + </font><font size=2 color=#4200ff face="Courier New">&quot;\n\n&quot;</font><font size=2 face="Courier New">
+ trace);</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#0021bf face="Courier New"><i>_log</i></font><font size=2 face="Courier New">.log(status);</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; }</font>
<br>
<br><font size=2 face="sans-serif">Is there something other than showing
the view that I need to do to have it work properly (e.g. manifest modifications?)</font>
<br>
<br><font size=2 face="sans-serif">Thank you,</font>
<br><font size=2 face="sans-serif">Robert</font>
<br>
--=_alternative 006790E6852574E9_=--
Previous Topic:Attachment rt.jar in a plugin
Next Topic:Events posted to the Error Log View are not being shown under an RCP app?
Goto Forum:
  


Current Time: Fri Apr 19 10:17:36 GMT 2024

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

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

Back to the top