@Plugin(name="JiraHomeAppender", category="Core", elementType="appender", printObject=true) public class JiraHomeAppender extends org.apache.logging.log4j.core.appender.AbstractAppender implements RollOverLogAppender
RollingFileAppender
.
The appender may be called before JIRA.HOME is ready to be used. In this situation the appender will buffer the log events until the JIRA.HOME is ready. Once ready, all the events will be flushed in order.
The appender will revert to its old behaviour (creating a file in the working directory) if JIRA.HOME is not configured correctly.
Modifier and Type | Class and Description |
---|---|
static class |
JiraHomeAppender.Builder<B extends JiraHomeAppender.Builder<B>> |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
String |
getFile() |
static <B extends JiraHomeAppender.Builder<B>> |
newBuilder() |
void |
rollOver()
Cause a log rollover to happen
|
void |
stop() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop
public void stop()
stop
in interface org.apache.logging.log4j.core.LifeCycle
stop
in class org.apache.logging.log4j.core.AbstractLifeCycle
public void append(org.apache.logging.log4j.core.LogEvent event)
append
in interface org.apache.logging.log4j.core.Appender
public String getFile()
getFile
in interface RollOverLogAppender
public void rollOver()
RollOverLogAppender
rollOver
in interface RollOverLogAppender
@PluginBuilderFactory public static <B extends JiraHomeAppender.Builder<B>> B newBuilder()
Copyright © 2002-2023 Atlassian. All Rights Reserved.