@Plugin(name="PaxOsgi",
category="Core",
elementType="appender",
printObject=true)
public class PaxOsgiAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
PaxAppender. That list of appender services is possibly filtered by the filter setting.| Constructor and Description |
|---|
PaxOsgiAppender(String name,
String filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static PaxOsgiAppender |
createAppender(String name,
String filter,
org.apache.logging.log4j.core.config.Configuration config)
Create a Pax Osgi Appender.
|
void |
start() |
void |
stop() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toStringaddFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop, stopequalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop@PluginFactory public static PaxOsgiAppender createAppender(@PluginAttribute(value="name") String name, @PluginAttribute(value="filter") String filter, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration config)
name - The name of the Appender.filter - defaults to "*", can be any string that works as a value in Filterconfig - The Configurationpublic void start()
start in interface org.apache.logging.log4j.core.LifeCyclestart in class org.apache.logging.log4j.core.filter.AbstractFilterablepublic void stop()
stop in interface org.apache.logging.log4j.core.LifeCyclestop in class org.apache.logging.log4j.core.AbstractLifeCyclepublic void append(org.apache.logging.log4j.core.LogEvent event)
Copyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.