public class PaxLoggingServiceImpl extends Object implements PaxLoggingService, LogService, org.osgi.service.cm.ManagedService, org.osgi.framework.ServiceFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SERVICE_LOG_LEVEL |
static String |
LOG4J2_ASYNC_KEY |
static String |
LOG4J2_CONFIG_FILE_KEY |
static String |
MAX_ENTRIES |
APPENDER_NAME_PROPERTY, ERRORHANDLER_NAME_PROPERTY, FILTER_NAME_PROPERTY, LAYOUT_NAME_PROPERTYLOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING| Constructor and Description |
|---|
PaxLoggingServiceImpl(org.osgi.framework.BundleContext bundleContext,
LogReaderServiceImpl logReader,
EventAdminPoster eventAdmin) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doUpdate(Dictionary configuration) |
PaxLogger |
getLogger(org.osgi.framework.Bundle bundle,
String category,
String fqcn) |
int |
getLogLevel() |
PaxContext |
getPaxContext() |
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration) |
void |
log(int level,
String message) |
void |
log(int level,
String message,
Throwable exception) |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
String message) |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
String message,
Throwable exception) |
protected void |
shutdown()
Shut down the Pax Logging service.
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service) |
void |
updated(Dictionary configuration) |
public static final String DEFAULT_SERVICE_LOG_LEVEL
public static final String MAX_ENTRIES
public static final String LOG4J2_CONFIG_FILE_KEY
public static final String LOG4J2_ASYNC_KEY
public PaxLoggingServiceImpl(org.osgi.framework.BundleContext bundleContext,
LogReaderServiceImpl logReader,
EventAdminPoster eventAdmin)
protected void shutdown()
public PaxLogger getLogger(org.osgi.framework.Bundle bundle, String category, String fqcn)
getLogger in interface PaxLoggingServicepublic void updated(Dictionary configuration) throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceorg.osgi.service.cm.ConfigurationExceptionprotected void doUpdate(Dictionary configuration) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionpublic int getLogLevel()
getLogLevel in interface PaxLoggingServicepublic void log(int level,
String message)
log in interface LogServicepublic void log(int level,
String message,
Throwable exception)
log in interface LogServicepublic void log(org.osgi.framework.ServiceReference sr,
int level,
String message)
log in interface LogServicepublic void log(org.osgi.framework.ServiceReference sr,
int level,
String message,
Throwable exception)
log in interface LogServicepublic Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService in interface org.osgi.framework.ServiceFactorypublic void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
ungetService in interface org.osgi.framework.ServiceFactorypublic PaxContext getPaxContext()
getPaxContext in interface PaxLoggingServiceCopyright © 2006-2015 OPS4J - Open Participation Software for Java. All Rights Reserved.