[forge-issues] [JBoss JIRA] (FORGE-2604) IDEA/Eclipse development - Make it possible to log to log/eventlog
Claus Ibsen (JIRA)
issues at jboss.org
Fri Feb 26 07:19:00 EST 2016
[ https://issues.jboss.org/browse/FORGE-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168888#comment-13168888 ]
Claus Ibsen commented on FORGE-2604:
------------------------------------
I had a chat with gastaldi
{code}
[13:10:32] <gastaldi> I agree with your logging idea. Right now we rely on JUL but that doesn't really work well inside the plugins (eg. Forge.log is not used).
[13:11:09] <davsclaus> yeah i found this
[13:11:09] <davsclaus> https://github.com/JetBrains/intellij-community/blob/master/platform/util-rt/src/com/intellij/openapi/diagnostic/LoggerRt.java
[13:11:18] <gastaldi> Perhaps the UIOutput.error method could log to the event log?
[13:11:21] <davsclaus> but i couldnt get that to work initially
[13:11:25] <davsclaus> so i just wrote a poor man
[13:11:40] <davsclaus> yeah
[13:12:07] <davsclaus> so what i see is that often there is either 1 log line in event log
[13:12:25] <davsclaus> if there was an error that would be the exception message
[13:12:32] <davsclaus> very seldom i see a full stacktrace
[13:12:33] <gastaldi> We generally log exceptions in the Eclipse event log
[13:12:49] <davsclaus> yeah if you can figure out to get them in idea event log
[13:12:57] <davsclaus> also i have seen that
[13:13:00] <davsclaus> if i teturn
[13:13:05] <davsclaus> Results.fail("xxx")
[13:13:10] <davsclaus> then that is not shown either
[13:13:18] <gastaldi> Right
[13:13:20] <davsclaus> but it could be my command that is a wizard
[13:13:22] <davsclaus> so it has some steps
[13:13:27] <gastaldi> Oh
[13:13:34] <davsclaus> but the command sad "success"
[13:13:37] <davsclaus> when i ran
[13:13:38] <davsclaus> it
[13:13:40] <gastaldi> Yeah. It returns as a CompositeResult
[13:13:50] <gastaldi> Hmm
[13:13:54] <davsclaus> so dont you check if any of those is a fail
[13:13:57] <davsclaus> and then show that
[13:14:01] <davsclaus> over an success
[13:14:18] <gastaldi> We do, it might have a bug in it
[13:14:24] <davsclaus> also there is little confusion if you should return null or Results.success
[13:14:28] <davsclaus> when you have a wizard
[13:14:35] <gastaldi> That's indifferent
[13:14:51] <gastaldi> Forge considers success when null is returned
[13:14:54] <davsclaus> ah ok so a null is like a success
[13:15:08] <gastaldi> Yeap
[13:17:54] <gastaldi> Mind copying this chat log to the JIRA? My mobile app doesn't support it. Will move to my laptop in a few mins
[13:18:14] <davsclaus> k
{code}
> IDEA/Eclipse development - Make it possible to log to log/eventlog
> ------------------------------------------------------------------
>
> Key: FORGE-2604
> URL: https://issues.jboss.org/browse/FORGE-2604
> Project: Forge
> Issue Type: Feature Request
> Components: UI - API
> Affects Versions: 3.0.0.CR1
> Reporter: Claus Ibsen
>
> Developing forge addons is really painful when developing and testing for GUIs such as IDEA or Eclipse.
> There is no logging or visibility what happens. And logging on IDEA or Eclipse is different, and you as a forge addon developed dont really know where the log files of IDEA/Eclipse are stored and how to log to them.
> Forge should have an easy API that you can use to
> - log in IDEA/Eclipse log
> - log to custom log file which you can easily configure
> - log to IDEA/Eclipse event log / console.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list