public interface PaxLoggingService
extends org.knopflerfish.service.log.LogService
This interface extends Knopflerfish' LogService which extends original LogService.
It should be implemented by specific logging provider (Log4j, Logback, ...).
It's role is to provide methods to obtain PaxLogger and PaxContext that are specific to
one of pax-logging-* implementations.
| Modifier and Type | Method and Description |
|---|---|
PaxLogger |
getLogger(org.osgi.framework.Bundle bundle,
String category,
String fqcn)
|
int |
getLogLevel()
Returns log level (actually, a threahold) associated with entire logging service.
|
PaxContext |
getPaxContext()
Returns
PaxContext of this service that gives access to thread-bound MDC context. |
PaxLogger getLogger(org.osgi.framework.Bundle bundle, String category, String fqcn)
PaxLogger instance - implementation-specific logger hidden under PaxLogger interface.
This method is not used directly, but rather through PaxLoggingManagerbundle - category - fqcn - int getLogLevel()
Returns log level (actually, a threahold) associated with entire logging service. Usually individual loggers may have different levels specified.
This method is specified in Knopflerfish extension to original LogService
PaxContext getPaxContext()
PaxContext of this service that gives access to thread-bound MDC context.Copyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.