A B C D E F G H I L M N O P Q R S T W

A

activateOptions() - Method in class org.apache.log4j.AppenderSkeleton
Derived appenders should override this method if option structure requires it.
activateOptions() - Method in class org.apache.log4j.ConsoleAppender
Prepares the appender for use.
activateOptions() - Method in class org.apache.log4j.DailyRollingFileAppender
 
activateOptions() - Method in class org.apache.log4j.FileAppender
If the value of File is not null, then FileAppender.setFile(java.lang.String) is called with the values of File and Append properties.
activateOptions() - Method in class org.apache.log4j.HTMLLayout
No options to activate.
activateOptions() - Method in class org.apache.log4j.PatternLayout
Does not do anything as options become effective
activateOptions() - Method in class org.apache.log4j.SimpleLayout
 
activateOptions() - Method in class org.apache.log4j.WriterAppender
Does nothing.
addAppender(Appender) - Method in class org.apache.log4j.AsyncAppender
Add appender.
addAppender(Appender) - Method in class org.apache.log4j.Category
Add newAppender to the list of appenders of this Category instance.
addFilter(Filter) - Method in interface org.apache.log4j.Appender
Add a filter to the end of the filter list.
addFilter(Filter) - Method in class org.apache.log4j.AppenderSkeleton
Add a filter to end of the filter list.
addHierarchyEventListener(HierarchyEventListener) - Method in class org.apache.log4j.Hierarchy
 
additive - Variable in class org.apache.log4j.Category
Additivity is set to true by default, that is children inherit the appenders of their ancestors by default.
addRenderer(Class, ObjectRenderer) - Method in class org.apache.log4j.Hierarchy
Add an object renderer for a specific class.
ALL - Static variable in class org.apache.log4j.Level
The ALL has the lowest possible rank and is intended to turn on all logging.
ALL_INT - Static variable in class org.apache.log4j.Priority
 
append(LoggingEvent) - Method in class org.apache.log4j.AppenderSkeleton
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
append(LoggingEvent) - Method in class org.apache.log4j.AsyncAppender
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
append(LoggingEvent) - Method in class org.apache.log4j.WriterAppender
This method is called by the AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method.
Appender - Interface in org.apache.log4j
Implement this interface for your own strategies for outputting log statements.
AppenderSkeleton - Class in org.apache.log4j
Abstract superclass of the other appenders in the package.
AppenderSkeleton() - Constructor for class org.apache.log4j.AppenderSkeleton
 
assertLog(boolean, String) - Method in class org.apache.log4j.Category
If assertion parameter is false, then logs msg as an error statement.
AsyncAppender - Class in org.apache.log4j
The AsyncAppender lets users log events asynchronously.
AsyncAppender() - Constructor for class org.apache.log4j.AsyncAppender
Create new instance.

B

BasicConfigurator - Class in org.apache.log4j
Use this class to quickly configure the package.
BasicConfigurator() - Constructor for class org.apache.log4j.BasicConfigurator
 
buf - Variable in class org.apache.log4j.TTCCLayout
 
BUF_SIZE - Variable in class org.apache.log4j.HTMLLayout
 
BUF_SIZE - Variable in class org.apache.log4j.PatternLayout
 
bufferedIO - Variable in class org.apache.log4j.FileAppender
Do we do bufferedIO?
bufferSize - Variable in class org.apache.log4j.FileAppender
Determines the size of IO buffer be.

C

callAppenders(LoggingEvent) - Method in class org.apache.log4j.Category
Call the appenders in the hierrachy starting at this.
Category - Class in org.apache.log4j
This class has been deprecated and replaced by the Logger subclass.
Category(String) - Constructor for class org.apache.log4j.Category
This constructor created a new Category instance and sets its name.
checkEntryConditions() - Method in class org.apache.log4j.WriterAppender
This method determines if there is a sense in attempting to append.
clear() - Method in class org.apache.log4j.Hierarchy
This call will clear all logger definitions from the internal hashtable.
clear() - Static method in class org.apache.log4j.NDC
Clear any nested diagnostic information if any.
clearFilters() - Method in interface org.apache.log4j.Appender
Clear the list of filters by removing all the filters in it.
clearFilters() - Method in class org.apache.log4j.AppenderSkeleton
Clear the filters chain.
cloneStack() - Static method in class org.apache.log4j.NDC
Clone the diagnostic context for the current thread.
close() - Method in interface org.apache.log4j.Appender
Release any resources allocated within the appender such as file handles, network connections, etc.
close() - Method in class org.apache.log4j.AsyncAppender
Close this AsyncAppender by interrupting the dispatcher thread which will process all pending events before exiting.
close() - Method in class org.apache.log4j.WriterAppender
Close this appender instance.
closed - Variable in class org.apache.log4j.AppenderSkeleton
Is this appender closed?
closeFile() - Method in class org.apache.log4j.FileAppender
Closes the previously opened file.
closeWriter() - Method in class org.apache.log4j.ConsoleAppender
Close the underlying Writer.
closeWriter() - Method in class org.apache.log4j.WriterAppender
Close the underlying Writer.
CONFIGURATOR_CLASS_KEY - Static variable in class org.apache.log4j.LogManager
Deprecated. This variable is for internal use only. It will become private in future versions.
configure() - Static method in class org.apache.log4j.BasicConfigurator
Add a ConsoleAppender that uses PatternLayout using the PatternLayout.TTCC_CONVERSION_PATTERN and prints to System.out to the root category.
configure(Appender) - Static method in class org.apache.log4j.BasicConfigurator
Add appender to the root category.
configure(String) - Static method in class org.apache.log4j.PropertyConfigurator
 
configure(URL) - Static method in class org.apache.log4j.PropertyConfigurator
Read configuration options from url configURL.
configure(Properties) - Static method in class org.apache.log4j.PropertyConfigurator
Read configuration options from properties.
configureAndWatch(String) - Static method in class org.apache.log4j.PropertyConfigurator
Like PropertyConfigurator.configureAndWatch(String, long) except that the default delay as defined by FileWatchdog.DEFAULT_DELAY is used.
configureAndWatch(String, long) - Static method in class org.apache.log4j.PropertyConfigurator
Read the configuration file configFilename if it exists.
configureLoggerFactory(Properties) - Method in class org.apache.log4j.PropertyConfigurator
Check the provided Properties object for a LoggerFactory entry specified by PropertyConfigurator.LOGGER_FACTORY_KEY.
ConsoleAppender - Class in org.apache.log4j
ConsoleAppender appends log events to System.out or System.err using a layout specified by the user.
ConsoleAppender() - Constructor for class org.apache.log4j.ConsoleAppender
Constructs an unconfigured appender.
ConsoleAppender(Layout) - Constructor for class org.apache.log4j.ConsoleAppender
Creates a configured appender.
ConsoleAppender(Layout, String) - Constructor for class org.apache.log4j.ConsoleAppender
Creates a configured appender.
createPatternParser(String) - Method in class org.apache.log4j.PatternLayout
Returns PatternParser used to parse the conversion string.
createWriter(OutputStream) - Method in class org.apache.log4j.WriterAppender
Returns an OutputStreamWriter when passed an OutputStream.

D

DailyRollingFileAppender - Class in org.apache.log4j
DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency.
DailyRollingFileAppender() - Constructor for class org.apache.log4j.DailyRollingFileAppender
The default constructor does nothing.
DailyRollingFileAppender(Layout, String, String) - Constructor for class org.apache.log4j.DailyRollingFileAppender
Instantiate a DailyRollingFileAppender and open the file designated by filename.
debug(Object) - Method in class org.apache.log4j.Category
Log a message object with the DEBUG level.
debug(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the DEBUG level including the stack trace of the Throwable t passed as parameter.
DEBUG - Static variable in class org.apache.log4j.Level
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
DEBUG - Static variable in class org.apache.log4j.Priority
Deprecated. Use Level.DEBUG instead.
DEBUG_INT - Static variable in class org.apache.log4j.Priority
 
DEFAULT_BUFFER_SIZE - Static variable in class org.apache.log4j.AsyncAppender
The default buffer size is set to 128 events.
DEFAULT_CONFIGURATION_FILE - Static variable in class org.apache.log4j.LogManager
Deprecated. This variable is for internal use only. It will become package protected in future versions.
DEFAULT_CONFIGURATION_KEY - Static variable in class org.apache.log4j.LogManager
Deprecated. This variable is for internal use only. It will become private in future versions.
DEFAULT_CONVERSION_PATTERN - Static variable in class org.apache.log4j.PatternLayout
Default pattern string for log output.
DEFAULT_INIT_OVERRIDE_KEY - Static variable in class org.apache.log4j.LogManager
Deprecated. This variable is for internal use only. It will become private in future versions.
doAppend(LoggingEvent) - Method in interface org.apache.log4j.Appender
Log in Appender specific way.
doAppend(LoggingEvent) - Method in class org.apache.log4j.AppenderSkeleton
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent) method.
doConfigure(String, LoggerRepository) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration from a file.
doConfigure(Properties, LoggerRepository) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration options from properties.
doConfigure(URL, LoggerRepository) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration options from url configURL.

E

emitNoAppenderWarning(Category) - Method in class org.apache.log4j.Hierarchy
 
encoding - Variable in class org.apache.log4j.WriterAppender
The encoding to use when writing.
equals(Object) - Method in class org.apache.log4j.Priority
Two priorities are equal if their level fields are equal.
error(Object) - Method in class org.apache.log4j.Category
Log a message object with the ERROR Level.
error(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the ERROR level including the stack trace of the Throwable t passed as parameter.
ERROR - Static variable in class org.apache.log4j.Level
The ERROR level designates error events that might still allow the application to continue running.
ERROR - Static variable in class org.apache.log4j.Priority
Deprecated. Use Level.ERROR instead.
ERROR_INT - Static variable in class org.apache.log4j.Priority
 
errorHandler - Variable in class org.apache.log4j.AppenderSkeleton
It is assumed and enforced that errorHandler is never null.
exists(String) - Static method in class org.apache.log4j.Category
Deprecated. Please use LogManager.exists(java.lang.String) instead.
exists(String) - Method in class org.apache.log4j.Hierarchy
Check if the named logger exists in the hierarchy.
exists(String) - Static method in class org.apache.log4j.LogManager
 

F

fatal(Object) - Method in class org.apache.log4j.Category
Log a message object with the FATAL Level.
fatal(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the FATAL level including the stack trace of the Throwable t passed as parameter.
FATAL - Static variable in class org.apache.log4j.Level
The FATAL level designates very severe error events that will presumably lead the application to abort.
FATAL - Static variable in class org.apache.log4j.Priority
Deprecated. Use Level.FATAL instead.
FATAL_INT - Static variable in class org.apache.log4j.Priority
 
fileAppend - Variable in class org.apache.log4j.FileAppender
Controls file truncatation.
FileAppender - Class in org.apache.log4j
FileAppender appends log events to a file.
FileAppender() - Constructor for class org.apache.log4j.FileAppender
The default constructor does not do anything.
FileAppender(Layout, String, boolean, boolean, int) - Constructor for class org.apache.log4j.FileAppender
Instantiate a FileAppender and open the file designated by filename.
FileAppender(Layout, String, boolean) - Constructor for class org.apache.log4j.FileAppender
Instantiate a FileAppender and open the file designated by filename.
FileAppender(Layout, String) - Constructor for class org.apache.log4j.FileAppender
Instantiate a FileAppender and open the file designated by filename.
fileName - Variable in class org.apache.log4j.FileAppender
The name of the log file.
finalize() - Method in class org.apache.log4j.AppenderSkeleton
Finalize this appender by calling the derived class' close method.
fireAddAppenderEvent(Category, Appender) - Method in class org.apache.log4j.Hierarchy
 
forcedLog(String, Priority, Object, Throwable) - Method in class org.apache.log4j.Category
This method creates a new logging event and logs the event without further checks.
format(LoggingEvent) - Method in class org.apache.log4j.HTMLLayout
 
format(LoggingEvent) - Method in class org.apache.log4j.Layout
Implement this method to create your own layout format.
format(LoggingEvent) - Method in class org.apache.log4j.PatternLayout
Produces a formatted string as specified by the conversion pattern.
format(LoggingEvent) - Method in class org.apache.log4j.SimpleLayout
Returns the log statement in a format consisting of the level, followed by " - " and then the message.
format(LoggingEvent) - Method in class org.apache.log4j.TTCCLayout
In addition to the level of the statement and message, the returned byte array includes time, thread, category and NDC information.

G

get(String) - Static method in class org.apache.log4j.MDC
Get the context identified by the key parameter.
get() - Static method in class org.apache.log4j.NDC
Never use this method directly, use the LoggingEvent.getNDC() method instead.
getAdditivity() - Method in class org.apache.log4j.Category
Get the additivity flag for this Category instance.
getAllAppenders() - Method in class org.apache.log4j.AsyncAppender
Get iterator over attached appenders.
getAllAppenders() - Method in class org.apache.log4j.Category
Get the appenders contained in this category as an Enumeration.
getAllPossiblePriorities() - Static method in class org.apache.log4j.Priority
Deprecated. This method will be removed with no replacement.
getAppend() - Method in class org.apache.log4j.FileAppender
Returns the value of the Append option.
getAppender(String) - Method in class org.apache.log4j.AsyncAppender
Get appender by name.
getAppender(String) - Method in class org.apache.log4j.Category
Look for the appender named as name.
getBlocking() - Method in class org.apache.log4j.AsyncAppender
Gets whether appender should block calling thread when buffer is full.
getBufferedIO() - Method in class org.apache.log4j.FileAppender
Get the value of the BufferedIO option.
getBufferSize() - Method in class org.apache.log4j.AsyncAppender
Gets the current buffer size.
getBufferSize() - Method in class org.apache.log4j.FileAppender
Get the size of the IO buffer.
getCategoryPrefixing() - Method in class org.apache.log4j.TTCCLayout
Returns value of the CategoryPrefixing option.
getChainedPriority() - Method in class org.apache.log4j.Category
Deprecated. Please use the the Category.getEffectiveLevel() method instead.
getContentType() - Method in class org.apache.log4j.HTMLLayout
Returns the content type output by this layout, i.e "text/html".
getContentType() - Method in class org.apache.log4j.Layout
Returns the content type output by this layout.
getContext() - Static method in class org.apache.log4j.MDC
Get the current thread's MDC as a hashtable.
getContextPrinting() - Method in class org.apache.log4j.TTCCLayout
Returns value of the ContextPrinting option.
getConversionPattern() - Method in class org.apache.log4j.PatternLayout
Returns the value of the ConversionPattern option.
getCurrentCategories() - Static method in class org.apache.log4j.Category
Deprecated. Please use LogManager.getCurrentLoggers() instead.
getCurrentCategories() - Method in class org.apache.log4j.Hierarchy
Deprecated. Please use Hierarchy.getCurrentLoggers() instead.
getCurrentLoggers() - Method in class org.apache.log4j.Hierarchy
Returns all the currently defined categories in this hierarchy as an Enumeration.
getCurrentLoggers() - Static method in class org.apache.log4j.LogManager
 
getDatePattern() - Method in class org.apache.log4j.DailyRollingFileAppender
Returns the value of the DatePattern option.
getDefaultHierarchy() - Static method in class org.apache.log4j.Category
Deprecated. Please use LogManager.getLoggerRepository() instead.
getDepth() - Static method in class org.apache.log4j.NDC
Get the current nesting depth of this diagnostic context.
getEffectiveLevel() - Method in class org.apache.log4j.Category
Starting from this category, search the category hierarchy for a non-null level and return it.
getEncoding() - Method in class org.apache.log4j.WriterAppender
 
getErrorHandler() - Method in interface org.apache.log4j.Appender
Returns the ErrorHandler for this appender.
getErrorHandler() - Method in class org.apache.log4j.AppenderSkeleton
Return the currently set ErrorHandler for this Appender.
getFile() - Method in class org.apache.log4j.FileAppender
Returns the value of the File option.
getFilter() - Method in interface org.apache.log4j.Appender
Returns the head Filter.
getFilter() - Method in class org.apache.log4j.AppenderSkeleton
Returns the head Filter.
getFirstFilter() - Method in class org.apache.log4j.AppenderSkeleton
Return the first filter in the filter chain for this Appender.
getFollow() - Method in class org.apache.log4j.ConsoleAppender
Gets whether the appender honors reassignments of System.out or System.err made after configuration.
getFooter() - Method in class org.apache.log4j.HTMLLayout
Returns the appropriate HTML footers.
getFooter() - Method in class org.apache.log4j.Layout
Returns the footer for the layout format.
getHeader() - Method in class org.apache.log4j.HTMLLayout
Returns appropriate HTML headers.
getHeader() - Method in class org.apache.log4j.Layout
Returns the header for the layout format.
getHierarchy() - Method in class org.apache.log4j.Category
Deprecated. Please use Category.getLoggerRepository() instead.
getImmediateFlush() - Method in class org.apache.log4j.WriterAppender
Returns value of the ImmediateFlush option.
getInstance(String) - Static method in class org.apache.log4j.Category
Deprecated. Make sure to use Logger.getLogger(String) instead.
getInstance(Class) - Static method in class org.apache.log4j.Category
Deprecated. Please make sure to use Logger.getLogger(Class) instead.
getLayout() - Method in interface org.apache.log4j.Appender
Returns this appenders layout.
getLayout() - Method in class org.apache.log4j.AppenderSkeleton
Returns the layout of this appender.
getLevel() - Method in class org.apache.log4j.Category
Returns the assigned Level, if any, for this Category.
getLocationInfo() - Method in class org.apache.log4j.AsyncAppender
Gets whether the location of the logging request call should be captured.
getLocationInfo() - Method in class org.apache.log4j.HTMLLayout
Returns the current value of the LocationInfo option.
getLogger(String) - Method in class org.apache.log4j.Hierarchy
Return a new logger instance named as the first parameter using the default factory.
getLogger(String, LoggerFactory) - Method in class org.apache.log4j.Hierarchy
Return a new logger instance named as the first parameter using factory.
getLogger(String) - Static method in class org.apache.log4j.Logger
Retrieve a logger named according to the value of the name parameter.
getLogger(Class) - Static method in class org.apache.log4j.Logger
Shorthand for getLogger(clazz.getName()).
getLogger(String, LoggerFactory) - Static method in class org.apache.log4j.Logger
Like Logger.getLogger(String) except that the type of logger instantiated depends on the type returned by the LoggerFactory.makeNewLoggerInstance(java.lang.String) method of the factory parameter.
getLogger(String) - Static method in class org.apache.log4j.LogManager
Retrieve the appropriate Logger instance.
getLogger(Class) - Static method in class org.apache.log4j.LogManager
Retrieve the appropriate Logger instance.
getLogger(String, LoggerFactory) - Static method in class org.apache.log4j.LogManager
Retrieve the appropriate Logger instance.
getLoggerRepository() - Method in class org.apache.log4j.Category
Return the the LoggerRepository where this Category is attached.
getLoggerRepository() - Static method in class org.apache.log4j.LogManager
 
getMaxBackupIndex() - Method in class org.apache.log4j.RollingFileAppender
Returns the value of the MaxBackupIndex option.
getMaximumFileSize() - Method in class org.apache.log4j.RollingFileAppender
Get the maximum size that the output file is allowed to reach before being rolled over to backup files.
getName() - Method in interface org.apache.log4j.Appender
Get the name of this appender.
getName() - Method in class org.apache.log4j.AppenderSkeleton
Returns the name of this FileAppender.
getName() - Method in class org.apache.log4j.Category
Return the category name.
getParent() - Method in class org.apache.log4j.Category
Returns the parent of this category.
getPriority() - Method in class org.apache.log4j.Category
Deprecated. Please use Category.getLevel() instead.
getRendererMap() - Method in class org.apache.log4j.Hierarchy
Get the renderer map for this hierarchy.
getResourceBundle() - Method in class org.apache.log4j.Category
Return the inherited ResourceBundle for this category.
getResourceBundleString(String) - Method in class org.apache.log4j.Category
Returns the string resource coresponding to key in this category's inherited resource bundle.
getRoot() - Static method in class org.apache.log4j.Category
Deprecated. Please use Logger.getRootLogger() instead.
getRootLogger() - Method in class org.apache.log4j.Hierarchy
Get the root of this hierarchy.
getRootLogger() - Static method in class org.apache.log4j.Logger
Return the root logger for the current logger repository.
getRootLogger() - Static method in class org.apache.log4j.LogManager
Retrieve the appropriate root logger.
getSyslogEquivalent() - Method in class org.apache.log4j.Priority
Return the syslog equivalent of this priority as an integer.
getTarget() - Method in class org.apache.log4j.ConsoleAppender
Returns the current value of the Target property.
getThreadPrinting() - Method in class org.apache.log4j.TTCCLayout
Returns value of the ThreadPrinting option.
getThreshold() - Method in class org.apache.log4j.AppenderSkeleton
Returns this appenders threshold level.
getThreshold() - Method in class org.apache.log4j.Hierarchy
Returns a Level representation of the enable state.
getTitle() - Method in class org.apache.log4j.HTMLLayout
Returns the current value of the Title option.

H

headFilter - Variable in class org.apache.log4j.AppenderSkeleton
The first filter in the filter chain.
Hierarchy - Class in org.apache.log4j
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
Hierarchy(Logger) - Constructor for class org.apache.log4j.Hierarchy
Create a new logger hierarchy.
HTMLLayout - Class in org.apache.log4j
This layout outputs events in a HTML table.
HTMLLayout() - Constructor for class org.apache.log4j.HTMLLayout
 

I

ignoresThrowable() - Method in class org.apache.log4j.HTMLLayout
The HTML layout handles the throwable contained in logging events.
ignoresThrowable() - Method in class org.apache.log4j.Layout
If the layout handles the throwable object contained within LoggingEvent, then the layout should return false.
ignoresThrowable() - Method in class org.apache.log4j.PatternLayout
The PatternLayout does not handle the throwable contained within LoggingEvents.
ignoresThrowable() - Method in class org.apache.log4j.SimpleLayout
The SimpleLayout does not handle the throwable contained within LoggingEvents.
ignoresThrowable() - Method in class org.apache.log4j.TTCCLayout
The TTCCLayout does not handle the throwable contained within LoggingEvents.
immediateFlush - Variable in class org.apache.log4j.WriterAppender
Immediate flush means that the underlying writer or output stream will be flushed at the end of each append operation.
info(Object) - Method in class org.apache.log4j.Category
Log a message object with the INFO Level.
info(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the INFO level including the stack trace of the Throwable t passed as parameter.
INFO - Static variable in class org.apache.log4j.Level
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
INFO - Static variable in class org.apache.log4j.Priority
Deprecated. Use Level.INFO instead.
INFO_INT - Static variable in class org.apache.log4j.Priority
 
inherit(Stack) - Static method in class org.apache.log4j.NDC
Inherit the diagnostic context of another thread.
isAsSevereAsThreshold(Priority) - Method in class org.apache.log4j.AppenderSkeleton
Check whether the message level is below the appender's threshold.
isAttached(Appender) - Method in class org.apache.log4j.AsyncAppender
Determines if specified appender is attached.
isAttached(Appender) - Method in class org.apache.log4j.Category
Is the appender passed as parameter attached to this category?
isDebugEnabled() - Method in class org.apache.log4j.Category
Check whether this category is enabled for the DEBUG Level.
isDisabled(int) - Method in class org.apache.log4j.Hierarchy
This method will return true if this repository is disabled for level object passed as parameter and false otherwise.
isEnabledFor(Priority) - Method in class org.apache.log4j.Category
Check whether this category is enabled for a given Level passed as parameter.
isGreaterOrEqual(Priority) - Method in class org.apache.log4j.Priority
Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.
isInfoEnabled() - Method in class org.apache.log4j.Category
Check whether this category is enabled for the info Level.
isTraceEnabled() - Method in class org.apache.log4j.Logger
Check whether this category is enabled for the TRACE Level.

L

l7dlog(Priority, String, Throwable) - Method in class org.apache.log4j.Category
Log a localized message.
l7dlog(Priority, String, Object[], Throwable) - Method in class org.apache.log4j.Category
Log a localized and parameterized message.
layout - Variable in class org.apache.log4j.AppenderSkeleton
The layout variable does not need to be set if the appender implementation has its own layout.
Layout - Class in org.apache.log4j
Extend this abstract class to create your own log layout format.
Layout() - Constructor for class org.apache.log4j.Layout
 
level - Variable in class org.apache.log4j.Category
The assigned level of this category.
Level - Class in org.apache.log4j
Defines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFODEBUG and ALL.
Level(int, String, int) - Constructor for class org.apache.log4j.Level
Instantiate a Level object.
LINE_SEP - Static variable in class org.apache.log4j.Layout
 
LINE_SEP_LEN - Static variable in class org.apache.log4j.Layout
 
LOCATION_INFO_OPTION - Static variable in class org.apache.log4j.HTMLLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
log(Priority, Object, Throwable) - Method in class org.apache.log4j.Category
This generic form is intended to be used by wrappers.
log(Priority, Object) - Method in class org.apache.log4j.Category
This generic form is intended to be used by wrappers.
log(String, Priority, Object, Throwable) - Method in class org.apache.log4j.Category
This is the most generic printing method.
Logger - Class in org.apache.log4j
This is the central class in the log4j package.
Logger(String) - Constructor for class org.apache.log4j.Logger
 
LOGGER_FACTORY_KEY - Static variable in class org.apache.log4j.PropertyConfigurator
Key for specifying the LoggerFactory.
loggerFactory - Variable in class org.apache.log4j.PropertyConfigurator
 
LogManager - Class in org.apache.log4j
Use the LogManager class to retreive Logger instances or to operate on the current LoggerRepository.
LogManager() - Constructor for class org.apache.log4j.LogManager
 

M

MAX_CAPACITY - Variable in class org.apache.log4j.HTMLLayout
 
MAX_CAPACITY - Variable in class org.apache.log4j.PatternLayout
 
maxBackupIndex - Variable in class org.apache.log4j.RollingFileAppender
There is one backup file by default.
maxFileSize - Variable in class org.apache.log4j.RollingFileAppender
The default maximum file size is 10MB.
MDC - Class in org.apache.log4j
The MDC class is similar to the NDC class except that it is based on a map instead of a stack.

N

name - Variable in class org.apache.log4j.AppenderSkeleton
Appenders are named.
name - Variable in class org.apache.log4j.Category
The name of this category.
NDC - Class in org.apache.log4j
The NDC class implements nested diagnostic contexts as defined by Neil Harrison in the article "Patterns for Logging Diagnostic Messages" part of the book "Pattern Languages of Program Design 3" edited by Martin et al.

O

OFF - Static variable in class org.apache.log4j.Level
The OFF has the highest possible rank and is intended to turn off logging.
OFF_INT - Static variable in class org.apache.log4j.Priority
 
org.apache.log4j - package org.apache.log4j
 
overrideAsNeeded(String) - Method in class org.apache.log4j.Hierarchy
Deprecated. Deprecated with no replacement.

P

parent - Variable in class org.apache.log4j.Category
The parent of this category.
parseCatsAndRenderers(Properties, LoggerRepository) - Method in class org.apache.log4j.PropertyConfigurator
Parse non-root elements, such non-root categories and renderers.
PatternLayout - Class in org.apache.log4j
A flexible layout configurable with pattern string.
PatternLayout() - Constructor for class org.apache.log4j.PatternLayout
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
PatternLayout(String) - Constructor for class org.apache.log4j.PatternLayout
Constructs a PatternLayout using the supplied conversion pattern.
peek() - Static method in class org.apache.log4j.NDC
Looks at the last diagnostic context at the top of this NDC without removing it.
pop() - Static method in class org.apache.log4j.NDC
Clients should call this method before leaving a diagnostic context.
Priority - Class in org.apache.log4j
Refrain from using this class directly, use the Level class instead.
Priority() - Constructor for class org.apache.log4j.Priority
Default constructor for deserialization.
Priority(int, String, int) - Constructor for class org.apache.log4j.Priority
Instantiate a level object.
PropertyConfigurator - Class in org.apache.log4j
Allows the configuration of log4j from an external file.
PropertyConfigurator() - Constructor for class org.apache.log4j.PropertyConfigurator
 
push(String) - Static method in class org.apache.log4j.NDC
Push new diagnostic context information for the current thread.
put(String, Object) - Static method in class org.apache.log4j.MDC
Put a context value (the o parameter) as identified with the key parameter into the current thread's context map.

Q

qw - Variable in class org.apache.log4j.WriterAppender
This is the quietWriter where we will write to.

R

registry - Variable in class org.apache.log4j.PropertyConfigurator
Used internally to keep track of configured appenders.
remove(String) - Static method in class org.apache.log4j.MDC
Remove the the context identified by the key parameter.
remove() - Static method in class org.apache.log4j.NDC
Remove the diagnostic context for this thread.
removeAllAppenders() - Method in class org.apache.log4j.AsyncAppender
Removes and closes all attached appenders.
removeAllAppenders() - Method in class org.apache.log4j.Category
Remove all previously added appenders from this Category instance.
removeAppender(Appender) - Method in class org.apache.log4j.AsyncAppender
Removes an appender.
removeAppender(String) - Method in class org.apache.log4j.AsyncAppender
Remove appender by name.
removeAppender(Appender) - Method in class org.apache.log4j.Category
Remove the appender passed as parameter form the list of appenders.
removeAppender(String) - Method in class org.apache.log4j.Category
Remove the appender with the name passed as parameter form the list of appenders.
repository - Variable in class org.apache.log4j.Category
 
requiresLayout() - Method in interface org.apache.log4j.Appender
Configurators call this method to determine if the appender requires a layout.
requiresLayout() - Method in class org.apache.log4j.AsyncAppender
Configurators call this method to determine if the appender requires a layout.
requiresLayout() - Method in class org.apache.log4j.WriterAppender
The WriterAppender requires a layout.
reset() - Method in class org.apache.log4j.FileAppender
Close any previously opened file and call the parent's reset.
reset() - Method in class org.apache.log4j.WriterAppender
Clear internal references to the writer and other variables.
resetConfiguration() - Static method in class org.apache.log4j.BasicConfigurator
Reset the default hierarchy to its defaut.
resetConfiguration() - Method in class org.apache.log4j.Hierarchy
Reset all values contained in this hierarchy instance to their default.
resetConfiguration() - Static method in class org.apache.log4j.LogManager
 
resourceBundle - Variable in class org.apache.log4j.Category
 
RollingFileAppender - Class in org.apache.log4j
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
RollingFileAppender() - Constructor for class org.apache.log4j.RollingFileAppender
The default constructor simply calls its parents constructor.
RollingFileAppender(Layout, String, boolean) - Constructor for class org.apache.log4j.RollingFileAppender
Instantiate a RollingFileAppender and open the file designated by filename.
RollingFileAppender(Layout, String) - Constructor for class org.apache.log4j.RollingFileAppender
Instantiate a FileAppender and open the file designated by filename.
rollOver() - Method in class org.apache.log4j.RollingFileAppender
Implements the usual roll over behaviour.

S

setAdditivity(boolean) - Method in class org.apache.log4j.Category
Set the additivity flag for this Category instance.
setAppend(boolean) - Method in class org.apache.log4j.FileAppender
The Append option takes a boolean value.
setBlocking(boolean) - Method in class org.apache.log4j.AsyncAppender
Sets whether appender should wait if there is no space available in the event buffer or immediately return.
setBufferedIO(boolean) - Method in class org.apache.log4j.FileAppender
The BufferedIO option takes a boolean value.
setBufferSize(int) - Method in class org.apache.log4j.AsyncAppender
Sets the number of messages allowed in the event buffer before the calling thread is blocked (if blocking is true) or until messages are summarized and discarded.
setBufferSize(int) - Method in class org.apache.log4j.FileAppender
Set the size of the IO buffer.
setCategoryPrefixing(boolean) - Method in class org.apache.log4j.TTCCLayout
The CategoryPrefixing option specifies whether Category name is part of log output or not.
setContextPrinting(boolean) - Method in class org.apache.log4j.TTCCLayout
The ContextPrinting option specifies log output will include the nested context information belonging to the current thread.
setConversionPattern(String) - Method in class org.apache.log4j.PatternLayout
Set the ConversionPattern option.
setDatePattern(String) - Method in class org.apache.log4j.DailyRollingFileAppender
The DatePattern takes a string in the same format as expected by SimpleDateFormat.
setDisableOverride(String) - Method in class org.apache.log4j.Hierarchy
Deprecated. Deprecated with no replacement.
setEncoding(String) - Method in class org.apache.log4j.WriterAppender
 
setErrorHandler(ErrorHandler) - Method in interface org.apache.log4j.Appender
Set the ErrorHandler for this appender.
setErrorHandler(ErrorHandler) - Method in class org.apache.log4j.AppenderSkeleton
Set the ErrorHandler for this Appender.
setErrorHandler(ErrorHandler) - Method in class org.apache.log4j.WriterAppender
Set the ErrorHandler for this WriterAppender and also the underlying QuietWriter if any.
setFile(String) - Method in class org.apache.log4j.FileAppender
The File property takes a string value which should be the name of the file to append to.
setFile(String, boolean, boolean, int) - Method in class org.apache.log4j.FileAppender
Sets and opens the file where the log output will go.
setFile(String, boolean, boolean, int) - Method in class org.apache.log4j.RollingFileAppender
 
setFollow(boolean) - Method in class org.apache.log4j.ConsoleAppender
Sets whether the appender honors reassignments of System.out or System.err made after configuration.
setImmediateFlush(boolean) - Method in class org.apache.log4j.WriterAppender
If the ImmediateFlush option is set to true, the appender will flush at the end of each write.
setLayout(Layout) - Method in interface org.apache.log4j.Appender
Set the Layout for this appender.
setLayout(Layout) - Method in class org.apache.log4j.AppenderSkeleton
Set the layout for this appender.
setLevel(Level) - Method in class org.apache.log4j.Category
Set the level of this Category.
setLocationInfo(boolean) - Method in class org.apache.log4j.AsyncAppender
The LocationInfo option takes a boolean value.
setLocationInfo(boolean) - Method in class org.apache.log4j.HTMLLayout
The LocationInfo option takes a boolean value.
setMaxBackupIndex(int) - Method in class org.apache.log4j.RollingFileAppender
Set the maximum number of backup files to keep around.
setMaxDepth(int) - Static method in class org.apache.log4j.NDC
Set maximum depth of this diagnostic context.
setMaxFileSize(String) - Method in class org.apache.log4j.RollingFileAppender
Set the maximum size that the output file is allowed to reach before being rolled over to backup files.
setMaximumFileSize(long) - Method in class org.apache.log4j.RollingFileAppender
Set the maximum size that the output file is allowed to reach before being rolled over to backup files.
setName(String) - Method in interface org.apache.log4j.Appender
Set the name of this appender.
setName(String) - Method in class org.apache.log4j.AppenderSkeleton
Set the name of this Appender.
setPriority(Priority) - Method in class org.apache.log4j.Category
Deprecated. Please use Category.setLevel(org.apache.log4j.Level) instead.
setQWForFiles(Writer) - Method in class org.apache.log4j.FileAppender
Sets the quiet writer being used.
setQWForFiles(Writer) - Method in class org.apache.log4j.RollingFileAppender
 
setRenderer(Class, ObjectRenderer) - Method in class org.apache.log4j.Hierarchy
Used by subclasses to add a renderer to the hierarchy passed as parameter.
setRepositorySelector(RepositorySelector, Object) - Static method in class org.apache.log4j.LogManager
Sets LoggerFactory but only if the correct guard is passed as parameter.
setResourceBundle(ResourceBundle) - Method in class org.apache.log4j.Category
Set the resource bundle to be used with localized logging methods Category.l7dlog(Priority,String,Throwable) and Category.l7dlog(Priority,String,Object[],Throwable).
setTarget(String) - Method in class org.apache.log4j.ConsoleAppender
Sets the value of the Target option.
setThreadPrinting(boolean) - Method in class org.apache.log4j.TTCCLayout
The ThreadPrinting option specifies whether the name of the current thread is part of log output or not.
setThreshold(Priority) - Method in class org.apache.log4j.AppenderSkeleton
Set the threshold level.
setThreshold(String) - Method in class org.apache.log4j.Hierarchy
The string form of Hierarchy.setThreshold(Level).
setThreshold(Level) - Method in class org.apache.log4j.Hierarchy
Enable logging for logging requests with level l or higher.
setTitle(String) - Method in class org.apache.log4j.HTMLLayout
The Title option takes a String value.
setWriter(Writer) - Method in class org.apache.log4j.WriterAppender
Sets the Writer where the log output will go.
shutdown() - Static method in class org.apache.log4j.Category
Deprecated. Please use LogManager.shutdown() instead.
shutdown() - Method in class org.apache.log4j.Hierarchy
Shutting down a hierarchy will safely close and remove all appenders in all categories including the root logger.
shutdown() - Static method in class org.apache.log4j.LogManager
 
SimpleLayout - Class in org.apache.log4j
SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself.
SimpleLayout() - Constructor for class org.apache.log4j.SimpleLayout
 
subAppend(LoggingEvent) - Method in class org.apache.log4j.DailyRollingFileAppender
This method differentiates DailyRollingFileAppender from its super class.
subAppend(LoggingEvent) - Method in class org.apache.log4j.RollingFileAppender
This method differentiates RollingFileAppender from its super class.
subAppend(LoggingEvent) - Method in class org.apache.log4j.WriterAppender
Actual writing occurs here.
SYSTEM_ERR - Static variable in class org.apache.log4j.ConsoleAppender
 
SYSTEM_OUT - Static variable in class org.apache.log4j.ConsoleAppender
 

T

tailFilter - Variable in class org.apache.log4j.AppenderSkeleton
The last filter in the filter chain.
target - Variable in class org.apache.log4j.ConsoleAppender
 
threshold - Variable in class org.apache.log4j.AppenderSkeleton
There is no level threshold filtering by default.
TITLE_OPTION - Static variable in class org.apache.log4j.HTMLLayout
A string constant used in naming the option for setting the the HTML document title.
toInt() - Method in class org.apache.log4j.Priority
Returns the integer representation of this level.
toLevel(String) - Static method in class org.apache.log4j.Level
Convert the string passed as argument to a level.
toLevel(int) - Static method in class org.apache.log4j.Level
Convert an integer passed as argument to a level.
toLevel(int, Level) - Static method in class org.apache.log4j.Level
Convert an integer passed as argument to a level.
toLevel(String, Level) - Static method in class org.apache.log4j.Level
Convert the string passed as argument to a level.
toPriority(String) - Static method in class org.apache.log4j.Priority
Deprecated. Please use the Level.toLevel(String) method instead.
toPriority(int) - Static method in class org.apache.log4j.Priority
Deprecated. Please use the Level.toLevel(int) method instead.
toPriority(int, Priority) - Static method in class org.apache.log4j.Priority
Deprecated. Please use the Level.toLevel(int, Level) method instead.
toPriority(String, Priority) - Static method in class org.apache.log4j.Priority
Deprecated. Please use the Level.toLevel(String, Level) method instead.
toString() - Method in class org.apache.log4j.Priority
Returns the string representation of this priority.
TRACE - Static variable in class org.apache.log4j.Level
The TRACE Level designates finer-grained informational events than the DEBUGtrace(Object) - Method in class org.apache.log4j.Logger
Log a message object with the TRACE level.
trace(Object, Throwable) - Method in class org.apache.log4j.Logger
Log a message object with the TRACE level including the stack trace of the Throwablet passed as parameter.
TRACE_INT - Static variable in class org.apache.log4j.Level
TRACE level integer value.
TTCC_CONVERSION_PATTERN - Static variable in class org.apache.log4j.PatternLayout
A conversion pattern equivalent to the TTCCCLayout.
TTCCLayout - Class in org.apache.log4j
TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.
TTCCLayout() - Constructor for class org.apache.log4j.TTCCLayout
Instantiate a TTCCLayout object with RelativeTimeDateFormat as the date formatter in the local time zone.
TTCCLayout(String) - Constructor for class org.apache.log4j.TTCCLayout
Instantiate a TTCCLayout object using the local time zone.

W

warn(Object) - Method in class org.apache.log4j.Category
Log a message object with the WARN Level.
warn(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message with the WARN level including the stack trace of the Throwable t passed as parameter.
WARN - Static variable in class org.apache.log4j.Level
The WARN level designates potentially harmful situations.
WARN - Static variable in class org.apache.log4j.Priority
Deprecated. Use Level.WARN instead.
WARN_INT - Static variable in class org.apache.log4j.Priority
 
writeFooter() - Method in class org.apache.log4j.WriterAppender
Write a footer as produced by the embedded layout's Layout.getFooter() method.
writeHeader() - Method in class org.apache.log4j.WriterAppender
Write a header as produced by the embedded layout's Layout.getHeader() method.
WriterAppender - Class in org.apache.log4j
WriterAppender appends log events to a Writer or an OutputStream depending on the user's choice.
WriterAppender() - Constructor for class org.apache.log4j.WriterAppender
This default constructor does nothing.
WriterAppender(Layout, OutputStream) - Constructor for class org.apache.log4j.WriterAppender
Instantiate a WriterAppender and set the output destination to a new OutputStreamWriter initialized with os as its OutputStream.
WriterAppender(Layout, Writer) - Constructor for class org.apache.log4j.WriterAppender
Instantiate a WriterAppender and set the output destination to writer.

A B C D E F G H I L M N O P Q R S T W

Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.