@ProviderType public interface LogService extends LoggerFactory
Replaced by LoggerFactory.
| Modifier and Type | Field and Description |
|---|---|
static int |
LOG_DEBUG
Deprecated.
Since 1.4. Replaced by
LogLevel.DEBUG. |
static int |
LOG_ERROR
Deprecated.
Since 1.4. Replaced by
LogLevel.ERROR. |
static int |
LOG_INFO
Deprecated.
Since 1.4. Replaced by
LogLevel.INFO. |
static int |
LOG_WARNING
Deprecated.
Since 1.4. Replaced by
LogLevel.WARN. |
| Modifier and Type | Method and Description |
|---|---|
void |
log(int level,
java.lang.String message)
Deprecated.
Since 1.4. Replaced by
Logger. See
LoggerFactory. |
void |
log(int level,
java.lang.String message,
java.lang.Throwable exception)
Deprecated.
Since 1.4. Replaced by
Logger. See
LoggerFactory. |
void |
log(ServiceReference<?> sr,
int level,
java.lang.String message)
Deprecated.
Since 1.4. Replaced by
Logger. See
LoggerFactory. |
void |
log(ServiceReference<?> sr,
int level,
java.lang.String message,
java.lang.Throwable exception)
Deprecated.
Since 1.4. Replaced by
Logger. See
LoggerFactory. |
@Deprecated static final int LOG_ERROR
LogLevel.ERROR.This log entry indicates the bundle or service may not be functional.
@Deprecated static final int LOG_WARNING
LogLevel.WARN.This log entry indicates a bundle or service is still functioning but may experience problems in the future because of the warning condition.
@Deprecated static final int LOG_INFO
LogLevel.INFO.This log entry may be the result of any change in the bundle or service and does not indicate a problem.
@Deprecated static final int LOG_DEBUG
LogLevel.DEBUG.This log entry is used for problem determination and may be irrelevant to anyone but the bundle developer.
@Deprecated
void log(int level,
java.lang.String message)
Logger. See
LoggerFactory.
The ServiceReference field and the Throwable field of the
LogEntry object will be set to null.
This method will log to the Logger named "LogService" for
the bundle. The specified level is mapped to a LogLevel as
follows:
LOG_ERROR - LogLevel.ERRORLOG_WARNING - LogLevel.WARNLOG_INFO - LogLevel.INFOLOG_DEBUG - LogLevel.DEBUGLogLevel.TRACELogEntry.getLevel() must return the
specified level.level - The severity of the message. This should be one of the
defined log levels but may be any integer that is interpreted
in a user defined way.message - Human readable string describing the condition or
null.@Deprecated
void log(int level,
java.lang.String message,
java.lang.Throwable exception)
Logger. See
LoggerFactory.
The ServiceReference field of the LogEntry object will be
set to null.
This method will log to the Logger named "LogService" for
the bundle. The specified level is mapped to a LogLevel as
follows:
LOG_ERROR - LogLevel.ERRORLOG_WARNING - LogLevel.WARNLOG_INFO - LogLevel.INFOLOG_DEBUG - LogLevel.DEBUGLogLevel.TRACELogEntry.getLevel() must return the
specified level.level - The severity of the message. This should be one of the
defined log levels but may be any integer that is interpreted
in a user defined way.message - The human readable string describing the condition or
null.exception - The exception that reflects the condition or
null.@Deprecated void log(ServiceReference<?> sr, int level, java.lang.String message)
Logger. See
LoggerFactory.ServiceReference
object.
The Throwable field of the LogEntry will be set to
null.
This method will log to the Logger named "LogService" for
the bundle. The specified level is mapped to a LogLevel as
follows:
LOG_ERROR - LogLevel.ERRORLOG_WARNING - LogLevel.WARNLOG_INFO - LogLevel.INFOLOG_DEBUG - LogLevel.DEBUGLogLevel.TRACELogEntry.getLevel() must return the
specified level.sr - The ServiceReference object of the service that this
message is associated with or null.level - The severity of the message. This should be one of the
defined log levels but may be any integer that is interpreted
in a user defined way.message - Human readable string describing the condition or
null.@Deprecated void log(ServiceReference<?> sr, int level, java.lang.String message, java.lang.Throwable exception)
Logger. See
LoggerFactory.ServiceReference object.
This method will log to the Logger named "LogService" for
the bundle. The specified level is mapped to a LogLevel as
follows:
LOG_ERROR - LogLevel.ERRORLOG_WARNING - LogLevel.WARNLOG_INFO - LogLevel.INFOLOG_DEBUG - LogLevel.DEBUGLogLevel.TRACELogEntry.getLevel() must return the
specified level.sr - The ServiceReference object of the service that this
message is associated with.level - The severity of the message. This should be one of the
defined log levels but may be any integer that is interpreted
in a user defined way.message - Human readable string describing the condition or
null.exception - The exception that reflects the condition or
null.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0