The conference runs from Monday 22nd March until the 25th. We hear that there will be plenty of copies of the book available, so be sure to pick one up while you're there!
Zesty.
6 years ago
The easy way to build service-oriented applications with OSGi
"It is only in the realm of pure science that truth is an absolute criterion. When we deal with applied science, with technology - we deal with people. And when we deal with people, considerations other than truth enter the question."
LogService
and it's cousin the LogReaderService
. When there are multiple registered LogService
and LogReaderService
pairs it can be tricky for an application to be able to present a single view of the application's logged messages.LogReaderAggregatorService
. As its name implies, it aggregates each registered LogReaderService
and presents a single service API with which to work with the application's entire log. The LogReaderAggregatorService
is straight forward:public interface LogReaderAggregatorService extends LogReaderService {Since the interface extends the OSGi-defined
public Enumeration/*<LogEntry>*/ getLogInOrder();
public boolean isLoggingToConsole();
public void setLogToConsole(boolean logToConsole);
}
LogReaderService
you can use the API you're familiar with, such as getLog()
, but of course what you'll get back is an Enumeration
of every LogEvent
for every registered LogReaderService
, in reverse chronological order.LogReaderAggregatorService
interfaces adds the method getLogInOrder()
for accessing every logged message in chronological order, and a couple of methods for controlling whether logged messages will be echoed to the console.LogReaderAggregatorService
interface is part of the required bundle org.eclipse.soda.sat.core
, the implementation lives in the optional bundle org.eclipse.soda.sat.core.log
.