Registry / logging / org-osgi-service-log

org-osgi-service-log

JSON →
library1.5.0javamavenunverified

OSGi companion code for the Log Service specification, providing logging interfaces for OSGi environments.

<dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.log</artifactId> <version>1.5.0</version> </dependency>
INSTALL
IMPORT
SIG · ORG-OSGI-SERVICE-L
O
org-osgi-service-log
loggingjavav1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogService
org.osgi.service.log.LogService

Use the OSGi LogService to log messages.

import org.osgi.service.log.LogService; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; public class Example { public void log(BundleContext context, String message) { ServiceReference<LogService> ref = context.getServiceReference(LogService.class); if (ref != null) { LogService log = context.getService(ref); log.log(LogService.LOG_INFO, message); } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
org-osgi-service-log — mvn dependency:get org-osgi-service-log · libregistry