Log Service

Description
This bundle provides a fully compliant implementation of the OSGi Log Service Specification, Version 1.1.

Contributor(s)
SoftSell Business Systems, as part of their OpenOSGi Project

License
Common Public License

Services
Name(s)
org.osgi.service.log.LogService
org.osgi.service.log.LogReaderService
Relevant interface(s)
public interface LogService
{
public static final int LOG_ERROR = 1;
public static final int LOG_WARNING = 2;
public static final int LOG_INFO = 3;
public static final int LOG_DEBUG = 4;


public void log(int level, String message);
public void log(int level, String message, Throwable exception);
public void log(ServiceReference sr, int level, String message);
public void log(ServiceReference sr, int level, String message,
Throwable exception);
}

public interface LogReaderService
{
public void addLogListener(LogListener listener);
public Enumeration getLog();
public void removeLogListener(LogListener listener);
}

public interface LogEntry
{
public Bundle getBundle();
public Throwable getException();
public int getLevel();
public String getMessage();
public ServiceReference getServiceReference();
public long getTime();
}

public interface LogListener extends EventListener
{
public void logged(LogEntry entry);
}

Properties
The openosgi-log bundle also offers the following configurable properties:

These properties can be configured using the standard bundle.properties file as described it the usage document.

Requirements
None