use of org.osgi.service.log.LogService in project narayana by jbosstm.
the class OsgiServer method warn.
protected void warn(String message, Throwable t) {
ServiceReference<LogService> ref = bundleContext.getServiceReference(LogService.class);
if (ref != null) {
LogService svc = bundleContext.getService(ref);
svc.log(LogService.LOG_WARNING, message, t);
bundleContext.ungetService(ref);
}
}
use of org.osgi.service.log.LogService in project ecf by eclipse.
the class Activator method getLogService.
protected LogService getLogService() {
if (logServiceTracker == null) {
logServiceTracker = new ServiceTracker(this.context, LogService.class.getName(), null);
logServiceTracker.open();
}
return (LogService) logServiceTracker.getService();
}
use of org.osgi.service.log.LogService in project ecf by eclipse.
the class Activator method getLogService.
protected LogService getLogService() {
if (logServiceTracker == null) {
logServiceTracker = new ServiceTracker(this.context, LogService.class.getName(), null);
logServiceTracker.open();
}
return (LogService) logServiceTracker.getService();
}
use of org.osgi.service.log.LogService in project ecf by eclipse.
the class Activator method getLogService.
private synchronized LogService getLogService() {
if (logServiceTracker == null) {
logServiceTracker = new ServiceTracker(this.context, LogService.class.getName(), null);
logServiceTracker.open();
}
return (LogService) logServiceTracker.getService();
}
use of org.osgi.service.log.LogService in project ecf by eclipse.
the class DiscoveryPlugin method getLogService.
public LogService getLogService() {
if (logServiceTracker == null) {
logServiceTracker = new ServiceTracker(this.context, LogService.class.getName(), null);
logServiceTracker.open();
}
return (LogService) logServiceTracker.getService();
}
Aggregations