public final class JiraHomeAppender extends Object implements org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler, 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.
Constructor and Description |
---|
JiraHomeAppender() |
JiraHomeAppender(JiraHomeStartupCheck startupCheck) |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
void |
addFilter(org.apache.log4j.spi.Filter newFilter) |
void |
clearFilters() |
void |
close() |
void |
doAppend(org.apache.log4j.spi.LoggingEvent event) |
boolean |
getAppend() |
boolean |
getBufferedIO() |
int |
getBufferSize() |
String |
getEncoding() |
org.apache.log4j.spi.ErrorHandler |
getErrorHandler() |
String |
getFile() |
org.apache.log4j.spi.Filter |
getFilter() |
org.apache.log4j.spi.Filter |
getFirstFilter() |
boolean |
getImmediateFlush() |
org.apache.log4j.Layout |
getLayout() |
int |
getMaxBackupIndex() |
long |
getMaximumFileSize() |
String |
getName() |
org.apache.log4j.Priority |
getThreshold() |
boolean |
requiresLayout() |
void |
rollOver()
Cause a log rollover to happen
|
void |
setAppend(boolean flag) |
void |
setBufferedIO(boolean bufferedIO) |
void |
setBufferSize(int bufferSize) |
void |
setEncoding(String value) |
void |
setErrorHandler(org.apache.log4j.spi.ErrorHandler eh) |
void |
setFile(String file) |
void |
setImmediateFlush(boolean value) |
void |
setLayout(org.apache.log4j.Layout layout) |
void |
setMaxBackupIndex(int maxBackups) |
void |
setMaxFileSize(String value) |
void |
setMaximumFileSize(long maxFileSize) |
void |
setName(String name) |
void |
setThreshold(org.apache.log4j.Priority threshold) |
public JiraHomeAppender(JiraHomeStartupCheck startupCheck)
public JiraHomeAppender()
public int getMaxBackupIndex()
public long getMaximumFileSize()
public void setMaxBackupIndex(int maxBackups)
public void setMaximumFileSize(long maxFileSize)
public void setMaxFileSize(String value)
public void setFile(String file)
public boolean getAppend()
public String getFile()
getFile
in interface RollOverLogAppender
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
public boolean getBufferedIO()
public int getBufferSize()
public void setAppend(boolean flag)
public void setBufferedIO(boolean bufferedIO)
public void setBufferSize(int bufferSize)
public void setImmediateFlush(boolean value)
public boolean getImmediateFlush()
public void close()
close
in interface org.apache.log4j.Appender
public String getEncoding()
public void setEncoding(String value)
public void setErrorHandler(org.apache.log4j.spi.ErrorHandler eh)
setErrorHandler
in interface org.apache.log4j.Appender
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
public void addFilter(org.apache.log4j.spi.Filter newFilter)
addFilter
in interface org.apache.log4j.Appender
public void clearFilters()
clearFilters
in interface org.apache.log4j.Appender
public org.apache.log4j.spi.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.apache.log4j.Appender
public org.apache.log4j.spi.Filter getFilter()
getFilter
in interface org.apache.log4j.Appender
public org.apache.log4j.spi.Filter getFirstFilter()
public org.apache.log4j.Layout getLayout()
getLayout
in interface org.apache.log4j.Appender
public String getName()
getName
in interface org.apache.log4j.Appender
public org.apache.log4j.Priority getThreshold()
public void setLayout(org.apache.log4j.Layout layout)
setLayout
in interface org.apache.log4j.Appender
public void setName(String name)
setName
in interface org.apache.log4j.Appender
public void setThreshold(org.apache.log4j.Priority threshold)
public void doAppend(org.apache.log4j.spi.LoggingEvent event)
doAppend
in interface org.apache.log4j.Appender
public void rollOver()
RollOverLogAppender
rollOver
in interface RollOverLogAppender
Copyright © 2002-2015 Atlassian. All Rights Reserved.