Skip navigation links

Package com.prosyst.mprm.backend.log

This package provides the mPRM Log Service which is an extension of the OSGi log service, adding the abbility for logging system related and gateway related log messages.

See: Description

Package com.prosyst.mprm.backend.log Description

This package provides the mPRM Log Service which is an extension of the OSGi log service, adding the abbility for logging system related and gateway related log messages. This service is meant to be used by the backend bundles. The functionality provided by this package is available through the methods of the MPRMLogService class. It can be accessed as a service on the backend framework and it is accessible to the other bundles through methods defined by the OSGi Framework specification.

Example :

import com.prosyst.mprm.backend.log.MPRMLogService;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;

.....

  public MPRMLogService getMPRMLogService(BundleContext context) {
    MPRMLogService logService = null;
    ServiceReference logRef = context.getServiceReference(MPRMLogService.class.getName());
    if (logRef != null) {
      logService = (MPRMLogService)context.getService(logRef);
    }
    return logService;
  }

.....



Skip navigation links

Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.