Logging not OSGi compliant? [message #663024] |
Sat, 02 April 2011 10:12 |
Karl Weber Messages: 63 Registered: September 2010 |
Member |
|
|
OSGi allows to log messages with or without a Service Reference:
// first way
fLogService.log(LogService.LOG_ERROR, "This is my first log message");
//second way
fLogService.log(serviceReference, LogService.LOG_ERROR, "This is my first log message");
Equinox does not write the Service Reference to the log. I am referring to the equinox release of eclipse 4.1M6 The reference seems to get lost in
EclipseLogWriter.logged() The Service Reference is stored in the log entry and can be obtained via Nevertheless, it is not passed on in the statement
// OK we are now in a case where someone logged a normal entry to the real LogService
log(new FrameworkLogEntry(getFwkEntryTag(entry), convertSeverity(entry), 0, entry.getMessage(), 0, entry.getException(), null));
I am no OSGi expert, but I don't know about the logging of the Service Reference being optional. So this should be a bug?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04154 seconds