Class Overview
A log4j appender that will log output data to the JIRA.HOME/log directory. It accepts the same options as the org.apache.log4j.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.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.logging.RollOverLogAppender
|
From interface
org.apache.log4j.Appender
void
|
addFilter(Filter arg0)
|
void
|
clearFilters()
|
void
|
close()
|
void
|
doAppend(LoggingEvent arg0)
|
ErrorHandler
|
getErrorHandler()
|
Filter
|
getFilter()
|
Layout
|
getLayout()
|
String
|
getName()
|
boolean
|
requiresLayout()
|
void
|
setErrorHandler(ErrorHandler arg0)
|
void
|
setLayout(Layout arg0)
|
void
|
setName(String arg0)
|
|
From interface
org.apache.log4j.spi.OptionHandler
|
Public Constructors
public
JiraHomeAppender
()
Public Methods
public
void
activateOptions
()
public
void
addFilter
(Filter newFilter)
public
void
clearFilters
()
public
void
doAppend
(LoggingEvent event)
public
boolean
getAppend
()
public
int
getBufferSize
()
public
boolean
getBufferedIO
()
public
ErrorHandler
getErrorHandler
()
public
Filter
getFilter
()
public
Filter
getFirstFilter
()
public
boolean
getImmediateFlush
()
public
Layout
getLayout
()
public
int
getMaxBackupIndex
()
public
long
getMaximumFileSize
()
public
Priority
getThreshold
()
public
boolean
requiresLayout
()
public
void
rollOver
()
Cause a log rollover to happen
public
void
setAppend
(boolean flag)
public
void
setBufferSize
(int bufferSize)
public
void
setBufferedIO
(boolean bufferedIO)
public
void
setEncoding
(String value)
public
void
setErrorHandler
(ErrorHandler eh)
public
void
setFile
(String file)
public
void
setImmediateFlush
(boolean value)
public
void
setLayout
(Layout layout)
public
void
setMaxBackupIndex
(int maxBackups)
public
void
setMaxFileSize
(String value)
public
void
setMaximumFileSize
(long maxFileSize)
public
void
setName
(String name)
public
void
setThreshold
(Priority threshold)