Package org.apache.felix.log
Class Activator
- java.lang.Object
-
- org.apache.felix.log.Activator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public final class Activator extends Object implements org.osgi.framework.BundleActivator
The bundle activator for the OSGi log service (see section 101 of the service compendium).The log service provides a general purpose message logger for the OSGi service platform. It consists of two services, one for logging information and another for retrieving current or previously recorded log information.
The service knows about the following properties which are read at bundle startup:
- org.apache.felix.log.maxSize
- Determines the maximum size of the log used to maintain historic log information. A value of -1 means the log has no maximum size; a value of 0 means that no historic log information will be maintained. The default value is 100.
- org.apache.felix.log.storeDebug
- Determines whether or not debug messages will be stored as part of the historic log information. The default value is false.
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(org.osgi.framework.BundleContext context)
Called by the OSGi framework when the bundle is started.void
stop(org.osgi.framework.BundleContext context)
Called by the OSGi framework when the bundle is stopped.
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception
Called by the OSGi framework when the bundle is started. Used to register the service implementations with the framework.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Parameters:
context
- the bundle context- Throws:
Exception
- if an error occurs
-
-