LogService

Syntax

public interface LogService

Description

The LogService provides methods for bundles to write messages to the log. Methods are provide to log messages with or without a ServiceDescription or an exception. Messages must be logged with a log level. The log levels have the following hierarchy:

  1. LOG_ERROR

  2. LOG_WARNING

  3. LOG_INFO

  4. LOG_DEBUG

Member Summary
Fields
public static finalLOG_DEBUG
 A debugging message.
public static finalLOG_ERROR
 An error message.
public static final LOG_INFO
 An informational message.
public static finalLOG_WARNING
 A warning message.
Methods
public voidlog(int, String)
 Log a message.
public voidlog(int, String, Throwable)
 Log a message with an exception.
public voidlog(ServiceReference, int, String)
 Log ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.