public class LayoutBridgeImpl
extends org.apache.log4j.Layout
PaxLayout OSGi service.
Internal tracker is closed when pax-logging-service bundle stops.| Constructor and Description |
|---|
LayoutBridgeImpl(org.osgi.framework.BundleContext bundleContext,
String name,
org.apache.log4j.Layout fallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
static org.osgi.framework.Filter |
createFilter(org.osgi.framework.BundleContext bundleContext,
String name)
Filter in the form of
(&(objectClass=org.ops4j.pax.logging.spi.PaxLayout)(org.ops4j.pax.logging.layout.name=NAME)),
where NAME comes from osgi: prefixed
references from logging configuration. |
String |
format(org.apache.log4j.spi.LoggingEvent event) |
String |
getContentType() |
String |
getFooter() |
String |
getHeader() |
boolean |
ignoresThrowable() |
public LayoutBridgeImpl(org.osgi.framework.BundleContext bundleContext,
String name,
org.apache.log4j.Layout fallback)
public static org.osgi.framework.Filter createFilter(org.osgi.framework.BundleContext bundleContext,
String name)
(&(objectClass=org.ops4j.pax.logging.spi.PaxLayout)(org.ops4j.pax.logging.layout.name=NAME)),
where NAME comes from osgi: prefixed
references from logging configuration.bundleContext - name - public String format(org.apache.log4j.spi.LoggingEvent event)
format in class org.apache.log4j.Layoutpublic boolean ignoresThrowable()
ignoresThrowable in class org.apache.log4j.Layoutpublic void activateOptions()
public String getContentType()
getContentType in class org.apache.log4j.Layoutpublic String getHeader()
getHeader in class org.apache.log4j.Layoutpublic String getFooter()
getFooter in class org.apache.log4j.LayoutCopyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.