Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How does an Xtext-generated plugin write to the workspace log?(How does one get the ILog for an XText-generated plugin?)
How does an Xtext-generated plugin write to the workspace log? [message #1101458] Wed, 04 September 2013 09:31 Go to next message
Eclipse UserFriend
I assume that to write to the workspace log I need to get the ILog instance for that plugin, but at that point things get a bit murky for me.

Some docs say each bundle has its own ILog, other external tips refer to using Activator.getDefault() or Platform.getLog(). The static nature of these calls makes me think that they get a global ILog, which probably isn't what I want. On the other hand, maybe some classloading majick makes there be one instance of each for the current plugin? Or maybe there's soe log support specific to Xtext that makes all of this moot?

Re: How does an Xtext-generated plugin write to the workspace log? [message #1149944 is a reply to message #1101458] Tue, 22 October 2013 08:17 Go to previous message
Eclipse UserFriend
It's a custom Appender that is configured in the log4.properties: see org.eclipse.xtext.logging.EclipseLogAppender
Previous Topic:Xtend vs. Xpand?
Next Topic:How to serialize DSL-Files to UML-Model
Goto Forum:
  


Current Time: Tue Jul 08 00:00:51 EDT 2025

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

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

Back to the top