Details
-
Type:
Sub-task
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.0Release
-
Fix Version/s: 2.1.1Release
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Should create an event trace view to see the results of inferencing DSL compilation, to look at problems, etc. This could be based on the AJDT Event Trace view. Probably best to make this a console.
Also, probably best to put this into org.codehaus.groovy.eclipse.core/ui, rather than in the dsl plugins.
I just committed the Groovy Event Console. You can open it like any other console in the console view. Events will be logged to it only when the console is open.
To log an event do this:
GroovyLogManager.manager.log(TraceCategory.COMPILER, "Message")I created a few arbitrary categories. I can easily expand them on request. Each category is associated with a color in the console.
You can also check to see if there are any loggers registered. This way you don't have to waste time constructing a message if there's no where to log to:
The following enables the default logger that logs to sysout:
GroovyLogManager.manager.setUseDefaultLogger(true)This functionality is in org.codehaus.groovy bundle, so it will be available from any other bundle in groovy-eclipse except the core patch.