|
Knopflerfish OSGi 5.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogService
This LogService provides an extra method for querying the service about the current log level. Log entries that are less severe than the current log level will be discarded by the log.
The log levels have the following hierarchy:LOG_ERROR
LOG_WARNING
LOG_INFO
LOG_DEBUG
Field Summary |
---|
Fields inherited from interface org.osgi.service.log.LogService |
---|
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING |
Method Summary | |
---|---|
int |
getLogLevel()
Get the current log level. |
Methods inherited from interface org.osgi.service.log.LogService |
---|
log, log, log, log |
Method Detail |
---|
int getLogLevel()
LogService.LOG_WARNING
then the log will discard all log
entries with level LogService.LOG_INFO
and LogService.LOG_DEBUG
. I.e. there
is no need for a bundle to try to send such log entries to the log.
The bundle may actually save a number of CPU-cycles by getting the
log level and do nothing if the intended log entry is less severe than
the current log level.
|
Knopflerfish OSGi 5.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |