Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Logging in Eclipse IDE plug-ins without activator?

Hi,

what is the recommended way of logging in an Eclipse IDE plug-in these
days if a plug-in does not have an activator?

I see several implementations in our platform code:

* AbstractUIPlugin#getLog
* Activator.getDefault().getLogService()
* InternalPlatform.log
* org.eclipse.e4.core.services.log.Logger (e4 services)
* org.eclipse.core.databinding.observable has a Policy class for logging
* RuntimeLog.log

https://bugs.eclipse.org/bugs/show_bug.cgi?id=502360 had a length
discussion but no resolution as far as I can tell no preferred way
emerged from this discussion.

Thomas Watson mentioned that the OSGi LogService has been reworked,
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=502360#c24. Is using
this service now the best way to log in plug-in code?

Best regards, Lars

-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top