Service Activator Toolkit
Version 1.1.0 (20081206)

org.eclipse.soda.sat.core.service
Interface LogReaderAggregatorService

All Superinterfaces:
LogReaderService

public interface LogReaderAggregatorService
extends LogReaderService

The LogReaderAggregatorService provides a single point at which to add a LogListener that will be notified of messages logged to every registered LogService. The service is helpful in that it removes the responsibility of listening to multiple instances of the LogReaderService.

While the listener will be notified of each logged message, it will be unaware of the LogService to which the message was logged, and of the LogReaderService from which the message was read.


Field Summary
static String LOGGING_TO_CONSOLE_PROPERTY
           
static String SERVICE_NAME
           
 
Method Summary
 Enumeration getLogInOrder()
          Get the contents of the log in the order in the log entries were written.
 boolean isLoggingToConsole()
          Query whether logging to the console is enabled.
 void setLogToConsole(boolean logToConsole)
          Control whether logging to the console is enabled.
 
Methods inherited from interface org.osgi.service.log.LogReaderService
addLogListener, getLog, removeLogListener
 

Field Detail

LOGGING_TO_CONSOLE_PROPERTY

static final String LOGGING_TO_CONSOLE_PROPERTY
See Also:
Constant Field Values

SERVICE_NAME

static final String SERVICE_NAME
Method Detail

getLogInOrder

Enumeration getLogInOrder()
Get the contents of the log in the order in the log entries were written. This method is similar to the LogReaderService method getLog().

Returns:
An Enumeration of LogEntry objects.

isLoggingToConsole

boolean isLoggingToConsole()
Query whether logging to the console is enabled.

Returns:
True if logging to the console is enabled, otherwise false.

setLogToConsole

void setLogToConsole(boolean logToConsole)
Control whether logging to the console is enabled.

Parameters:
logToConsole - A parameter of true will enable logging to the console, while a parameter of false will disable logging to the console.

Service Activator Toolkit
Version 1.1.0 (20081206)