|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.logging.service.internal.PaxLoggingServiceImpl
public class PaxLoggingServiceImpl
Field Summary |
---|
Fields inherited from interface org.ops4j.pax.logging.PaxLoggingService |
---|
APPENDER_NAME_PROPERTY |
Fields inherited from interface org.osgi.service.log.LogService |
---|
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING |
Constructor Summary | |
---|---|
PaxLoggingServiceImpl(org.osgi.framework.BundleContext context,
LogReaderServiceImpl logReader,
EventAdminPoster eventAdmin)
|
Method Summary | |
---|---|
PaxLogger |
getLogger(org.osgi.framework.Bundle bundle,
java.lang.String category,
java.lang.String fqcn)
|
int |
getLogLevel()
* Get the current log level. |
PaxContext |
getPaxContext()
|
java.lang.Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
|
void |
log(int level,
java.lang.String message)
Logs a message. |
void |
log(int level,
java.lang.String message,
java.lang.Throwable exception)
Logs a message with an exception. |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
java.lang.String message)
Logs a message associated with a specific ServiceReference
object. |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
java.lang.String message,
java.lang.Throwable exception)
Logs a message with an exception associated and a ServiceReference object. |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
java.lang.Object service)
|
void |
updated(java.util.Dictionary configuration)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaxLoggingServiceImpl(org.osgi.framework.BundleContext context, LogReaderServiceImpl logReader, EventAdminPoster eventAdmin)
Method Detail |
---|
public PaxLogger getLogger(org.osgi.framework.Bundle bundle, java.lang.String category, java.lang.String fqcn)
getLogger
in interface PaxLoggingService
public int getLogLevel()
LogService
getLogLevel
in interface PaxLoggingService
public void log(int level, java.lang.String message)
LogService
The ServiceReference
field and the Throwable
field
of the LogEntry
object will be set to null
.
log
in interface LogService
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
.LogService.LOG_ERROR
,
LogService.LOG_WARNING
,
LogService.LOG_INFO
,
LogService.LOG_DEBUG
public void log(int level, java.lang.String message, java.lang.Throwable exception)
LogService
The ServiceReference
field of the LogEntry
object
will be set to null
.
log
in interface LogService
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
.LogService.LOG_ERROR
,
LogService.LOG_WARNING
,
LogService.LOG_INFO
,
LogService.LOG_DEBUG
public void log(org.osgi.framework.ServiceReference sr, int level, java.lang.String message)
LogService
ServiceReference
object.
The Throwable
field of the LogEntry
will be set to
null
.
log
in interface LogService
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
.LogService.LOG_ERROR
,
LogService.LOG_WARNING
,
LogService.LOG_INFO
,
LogService.LOG_DEBUG
public void log(org.osgi.framework.ServiceReference sr, int level, java.lang.String message, java.lang.Throwable exception)
LogService
ServiceReference
object.
log
in interface LogService
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
.LogService.LOG_ERROR
,
LogService.LOG_WARNING
,
LogService.LOG_INFO
,
LogService.LOG_DEBUG
public void updated(java.util.Dictionary configuration) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
public java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
public PaxContext getPaxContext()
getPaxContext
in interface PaxLoggingService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |