Log4j 1.1.3
A B C D E F G H I J L M N O P Q R S T V W X

A

ABS_TIME_DATE_FORMAT - Static variable in class org.apache.log4j.helpers.AbsoluteTimeDateFormat
String constant used to specify AbsoluteTimeDateFormat in layouts.
AbsoluteTimeDateFormat - class org.apache.log4j.helpers.AbsoluteTimeDateFormat.
Formats a Date in the format "HH:mm:ss,SSS" for example, "15:49:37,459".
AbsoluteTimeDateFormat() - Constructor for class org.apache.log4j.helpers.AbsoluteTimeDateFormat
 
AbsoluteTimeDateFormat(TimeZone) - Constructor for class org.apache.log4j.helpers.AbsoluteTimeDateFormat
 
ACCEPT - Static variable in class org.apache.log4j.spi.Filter
The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
ACCEPT_ON_MATCH_OPTION - Static variable in class org.apache.log4j.varia.StringMatchFilter
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
ACCEPT_ON_MATCH_OPTION - Static variable in class org.apache.log4j.varia.PriorityRangeFilter
See class comments
ACCEPT_ON_MATCH_OPTION - Static variable in class org.apache.log4j.varia.PriorityMatchFilter
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
activate() - Method in class org.apache.log4j.config.PropertySetter
 
activateOptions() - Method in class org.apache.log4j.SimpleLayout
 
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 immediately.
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.WriterAppender
Does nothing.
activateOptions() - Method in class org.apache.log4j.FileAppender
If the value of FileAppender.FILE_OPTION is not null, then FileAppender.setFile(java.lang.String) is called with the values of FileAppender.FILE_OPTION and FileAppender.APPEND_OPTION.
activateOptions() - Method in class org.apache.log4j.ConsoleAppender
 
activateOptions() - Method in class org.apache.log4j.DailyRollingFileAppender
 
activateOptions() - Method in class org.apache.log4j.helpers.DateLayout
 
activateOptions() - Method in class org.apache.log4j.helpers.OnlyOnceErrorHandler
No options to activate.
activateOptions() - Method in class org.apache.log4j.net.SyslogAppender
This method returns immediately as options are activated when they are set.
activateOptions() - Method in class org.apache.log4j.net.SocketAppender
Connect to the specified RemoteHost and Port.
activateOptions() - Method in class org.apache.log4j.net.JMSAppender
 
activateOptions() - Method in class org.apache.log4j.net.SMTPAppender
Activate the specified options, such as the smtp host, the recipient, from, etc.
activateOptions() - Method in class org.apache.log4j.nt.NTEventLogAppender
 
activateOptions() - Method in interface org.apache.log4j.spi.OptionHandler
Activate the options that were previously set with calls to option setters.
activateOptions() - Method in class org.apache.log4j.spi.Filter
Usually filters options become active when set.
activateOptions() - Method in class org.apache.log4j.varia.ExternallyRolledFileAppender
Start listening on the port specified by a preceding call to ExternallyRolledFileAppender.setOption(java.lang.String, java.lang.String).
activateOptions() - Method in class org.apache.log4j.xml.XMLLayout
 
activateOptions() - Method in class org.apache.log4j.xml.examples.XCategory
Nothing to activate.
add(LoggingEvent) - Method in class org.apache.log4j.helpers.CyclicBuffer
Add an event as the last event in the buffer.
addAppender(Appender) - Method in class org.apache.log4j.Category
Add newAppender to the list of appenders of this Category instance.
addAppender(Appender) - Method in class org.apache.log4j.AsyncAppender
 
addAppender(Appender) - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Attach an appender.
addAppender(Appender) - Method in interface org.apache.log4j.spi.AppenderAttachable
Add an appender.
addConverter(PatternConverter) - Method in class org.apache.log4j.helpers.PatternParser
 
addFilter(Filter) - Method in class org.apache.log4j.AppenderSkeleton
Add a filter to end of the filter list.
addFilter(Filter) - Method in interface org.apache.log4j.Appender
Add a filter to the end of the filter list.
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.
addRenderer(Hierarchy, String, String) - Method in class org.apache.log4j.BasicConfigurator
Used by subclasses to add a renderer to the hierarchy passed as parameter.
ADDRESS_PARSE_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
APPEND_OPTION - Static variable in class org.apache.log4j.FileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
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.WriterAppender
This method is called by the AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method.
append(LoggingEvent) - Method in class org.apache.log4j.AsyncAppender
 
append(LoggingEvent) - Method in class org.apache.log4j.net.SyslogAppender
 
append(LoggingEvent) - Method in class org.apache.log4j.net.SocketAppender
 
append(LoggingEvent) - Method in class org.apache.log4j.net.JMSAppender
This method called by AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method to do most of the real appending work.
append(LoggingEvent) - Method in class org.apache.log4j.net.SMTPAppender
Perform SMTPAppender specific appending actions, mainly adding the event to a cyclic buffer and checking if the event triggers an e-mail to be sent.
append(LoggingEvent) - Method in class org.apache.log4j.nt.NTEventLogAppender
 
append(LoggingEvent) - Method in class org.apache.log4j.performance.NullAppender
 
Appender - interface org.apache.log4j.Appender.
Implement this interface for your own strategies for printing log statements.
AppenderAttachable - interface org.apache.log4j.spi.AppenderAttachable.
Interface for attaching appenders to objects.
AppenderAttachableImpl - class org.apache.log4j.helpers.AppenderAttachableImpl.
A straightforward implementation of the AppenderAttachable interface.
AppenderAttachableImpl() - Constructor for class org.apache.log4j.helpers.AppenderAttachableImpl
 
appenderList - Variable in class org.apache.log4j.helpers.AppenderAttachableImpl
Array of appenders.
appenderNames - Variable in class org.apache.log4j.config.PropertyPrinter
 
AppenderSkeleton - class org.apache.log4j.AppenderSkeleton.
Abstract superclass of the other appenders in the package.
AppenderSkeleton() - Constructor for class org.apache.log4j.AppenderSkeleton
 
appendLoopOnAppenders(LoggingEvent) - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Call the doAppend method on all attached appenders.
AppServerCategory - class org.apache.log4j.examples.appserver.AppServerCategory.
Extends Category by adding four text attributes relevant to applications applications run in application servers.
AppServerCategory(String, String, String, String, String) - Constructor for class org.apache.log4j.examples.appserver.AppServerCategory
Construct a new AppServerCategory with the provided attributes.
AppServerCategoryFactory - class org.apache.log4j.examples.appserver.AppServerCategoryFactory.
Creates correctly populated instances of AppServerCategory.
AppServerCategoryFactory() - Constructor for class org.apache.log4j.examples.appserver.AppServerCategoryFactory
The default constructor merely calls the three-argument constructor with null values.
AppServerCategoryFactory(String, String, String) - Constructor for class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Construct a new AppServerCategoryFactory with the provided attributes.
AppServerLoggingEvent - class org.apache.log4j.examples.appserver.AppServerLoggingEvent.
Represents logging events for application servers.
AppServerLoggingEvent(String, AppServerCategory, Priority, Object, Throwable) - Constructor for class org.apache.log4j.examples.appserver.AppServerLoggingEvent
Instantiate an AppServerLoggingEvent from the supplied parameters.
AppServerPatternLayout - class org.apache.log4j.examples.appserver.AppServerPatternLayout.
Extends PatternLayout to create subclass instances of AppServerPatternParser for parsing pattern strings.
AppServerPatternLayout() - Constructor for class org.apache.log4j.examples.appserver.AppServerPatternLayout
 
AppServerPatternLayout(String) - Constructor for class org.apache.log4j.examples.appserver.AppServerPatternLayout
 
AppServerPatternParser - class org.apache.log4j.examples.appserver.AppServerPatternParser.
Extend PatternParser to recognize additional conversion characters suitable for use by application servers.
AppServerPatternParser(String) - Constructor for class org.apache.log4j.examples.appserver.AppServerPatternParser
Create a parser with the provided pattern.
assert(boolean, String) - Method in class org.apache.log4j.Category
If assertion parameter is false, then logs msg as an error statement.
AsyncAppender - class org.apache.log4j.AsyncAppender.
The AsyncAppender lets users log events asynchronously.
AsyncAppender() - Constructor for class org.apache.log4j.AsyncAppender
 

B

BasicConfigurator - class org.apache.log4j.BasicConfigurator.
Use this class to quickly configure the package.
BasicConfigurator() - Constructor for class org.apache.log4j.BasicConfigurator
 
BoundedFIFO - class org.apache.log4j.helpers.BoundedFIFO.
BoundedFIFO serves as the bounded first-in-first-out buffer heavily used by the AsyncAppender.
BoundedFIFO(int) - Constructor for class org.apache.log4j.helpers.BoundedFIFO
Instantiate a new BoundedFIFO with a maximum size passed as argument.
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
 
BUFFER_SIZE_OPTION - Static variable in class org.apache.log4j.AsyncAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
BUFFER_SIZE_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.

C

callAppenders(LoggingEvent) - Method in class org.apache.log4j.Category
Call the appenders in the hierrachy starting at this.
capitalize(String) - Static method in class org.apache.log4j.config.PropertyPrinter
 
category - Variable in class org.apache.log4j.spi.LoggingEvent
The category of the logging event.
Category - class org.apache.log4j.Category.
This is the central class in the log4j package.
CATEGORY_FACTORY_KEY - Static variable in class org.apache.log4j.PropertyConfigurator
Key for specifying the CategoryFactory.
CATEGORY_PREFIXING_OPTION - Static variable in class org.apache.log4j.TTCCLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
Category(String) - Constructor for class org.apache.log4j.Category
This constructor created a new Category instance and sets its name.
categoryFactory - Variable in class org.apache.log4j.PropertyConfigurator
 
CategoryFactory - interface org.apache.log4j.spi.CategoryFactory.
Implement this interface to create new instances of Category or a sub-class of Category.
categoryName - Variable in class org.apache.log4j.spi.LoggingEvent
The category name.
cb - Variable in class org.apache.log4j.net.SMTPAppender
 
checkAndConfigure() - Method in class org.apache.log4j.helpers.FileWatchdog
 
checkEntryConditions() - Method in class org.apache.log4j.WriterAppender
This method determines if there is a sense in attempting to append.
checkEntryConditions() - Method in class org.apache.log4j.net.JMSAppender
 
checkEntryConditions() - Method in class org.apache.log4j.net.SMTPAppender
This method determines if there is a sense in attempting to append.
cleanUp() - Method in class org.apache.log4j.net.SocketAppender
Drop the connection to the remote host and release the underlying connector thread if it has been created
clear() - Method in class org.apache.log4j.Hierarchy
This call will clear all category definitions from the internal hashtable.
clear() - Static method in class org.apache.log4j.NDC
Clear any nested diagnostic information if any.
clear() - Method in class org.apache.log4j.or.RendererMap
 
clearFilters() - Method in class org.apache.log4j.AppenderSkeleton
Clear the filters chain.
clearFilters() - Method in interface org.apache.log4j.Appender
Clear the list of filters by removing all the filters in it.
cloneStack() - Static method in class org.apache.log4j.NDC
Clone the diagnostic context for the current thread.
CLOSE_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
close() - Method in class org.apache.log4j.WriterAppender
Close this appender instance.
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.helpers.SyslogWriter
 
close() - Method in class org.apache.log4j.net.SyslogAppender
Release any resources held by this SyslogAppender.
close() - Method in class org.apache.log4j.net.SocketAppender
Close this appender.
close() - Method in class org.apache.log4j.net.JMSAppender
Close this JMSAppender.
close() - Method in class org.apache.log4j.net.SMTPAppender
 
close() - Method in class org.apache.log4j.nt.NTEventLogAppender
 
close() - Method in class org.apache.log4j.performance.NullAppender
 
close() - Method in class org.apache.log4j.performance.NOPWriter
 
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.WriterAppender
Close the underlying Writer.
closeWriter() - Method in class org.apache.log4j.ConsoleAppender
Override the parent method to do nothing.
component - Variable in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
The name of the component using this factory.
component - Variable in class org.apache.log4j.examples.appserver.AppServerCategory
The name of the component using this category.
component - Variable in class org.apache.log4j.examples.appserver.AppServerLoggingEvent
Name of component from which this event originated.
COMPONENT_CHAR - Static variable in class org.apache.log4j.examples.appserver.AppServerPatternParser
Set to 'b'.
concatanateArrays(String[], String[]) - Static method in class org.apache.log4j.helpers.OptionConverter
 
ConcatVsArray - class org.apache.log4j.performance.ConcatVsArray.
Measure difference in performance of string concatenation versus creating an anonymous string array.
ConcatVsArray() - Constructor for class org.apache.log4j.performance.ConcatVsArray
 
CONFIG_DEBUG_KEY - Static variable in class org.apache.log4j.helpers.LogLog
Deprecated. Use LogLog.DEBUG_KEY instead.
Configurator - interface org.apache.log4j.spi.Configurator.
Implemented by classes capable of configuring log4j using a URL.
configure() - Static method in class org.apache.log4j.BasicConfigurator
Add a FileAppender 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(Element) - Static method in class org.apache.log4j.xml.DOMConfigurator
Configure log4j using a configuration element as defined in the log4j.dtd.
configure(Properties) - Static method in class org.apache.log4j.PropertyConfigurator
Read configuration options from properties.
configure(String) - Static method in class org.apache.log4j.PropertyConfigurator
 
configure(String) - Static method in class org.apache.log4j.xml.DOMConfigurator
A static version of DOMConfigurator.doConfigure(String, Hierarchy).
configure(URL) - Static method in class org.apache.log4j.PropertyConfigurator
Read configuration options from url configURL.
configure(URL) - Static method in class org.apache.log4j.xml.DOMConfigurator
A static version of DOMConfigurator.doConfigure(URL, Hierarchy).
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) - Static method in class org.apache.log4j.xml.DOMConfigurator
Like DOMConfigurator.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.
configureAndWatch(String, long) - Static method in class org.apache.log4j.xml.DOMConfigurator
Read the configuration file configFilename if it exists.
configureCategoryFactory(Properties) - Method in class org.apache.log4j.PropertyConfigurator
Check the provided Properties object for a CategoryFactory entry specified by PropertyConfigurator.CATEGORY_FACTORY_KEY.
ConsoleAppender - class org.apache.log4j.ConsoleAppender.
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
The default constructor does nothing.
ConsoleAppender(Layout) - Constructor for class org.apache.log4j.ConsoleAppender
 
ConsoleAppender(Layout, String) - Constructor for class org.apache.log4j.ConsoleAppender
 
CONTEXT_PRINTING_OPTION - Static variable in class org.apache.log4j.TTCCLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
CONVERSION_PATTERN_OPTION - Static variable in class org.apache.log4j.PatternLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
convert(LoggingEvent) - Method in class org.apache.log4j.helpers.PatternConverter
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
convertArg(String, Class) - Method in class org.apache.log4j.config.PropertySetter
Convert val a String parameter to an object of a given type.
convertSpecialChars(String) - Static method in class org.apache.log4j.helpers.OptionConverter
 
count - Variable in class org.apache.log4j.helpers.CountingQuietWriter
 
CountingQuietWriter - class org.apache.log4j.helpers.CountingQuietWriter.
Counts the number of bytes written.
CountingQuietWriter(Writer, ErrorHandler) - Constructor for class org.apache.log4j.helpers.CountingQuietWriter
 
createPatternParser(String) - Method in class org.apache.log4j.PatternLayout
Returns PatternParser used to parse the conversion string.
createPatternParser(String) - Method in class org.apache.log4j.examples.MyPatternLayout
 
createPatternParser(String) - Method in class org.apache.log4j.examples.appserver.AppServerPatternLayout
 
currentLiteral - Variable in class org.apache.log4j.helpers.PatternParser
 
CyclicBuffer - class org.apache.log4j.helpers.CyclicBuffer.
CyclicBuffer is used by other appenders to hold LoggingEvents for immediate or differed display.
CyclicBuffer(int) - Constructor for class org.apache.log4j.helpers.CyclicBuffer
Instantiate a new CyclicBuffer of at most maxSize events.

D

DailyRollingFileAppender - class org.apache.log4j.DailyRollingFileAppender.
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.
date - Variable in class org.apache.log4j.helpers.DateLayout
 
DATE_AND_TIME_DATE_FORMAT - Static variable in class org.apache.log4j.helpers.AbsoluteTimeDateFormat
String constant used to specify DateTimeDateFormat in layouts.
DATE_FORMAT_OPTION - Static variable in class org.apache.log4j.helpers.DateLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
DATE_PATTERN_OPTION - Static variable in class org.apache.log4j.DailyRollingFileAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
dateFormat - Variable in class org.apache.log4j.helpers.DateLayout
 
dateFormat(StringBuffer, LoggingEvent) - Method in class org.apache.log4j.helpers.DateLayout
 
DateLayout - class org.apache.log4j.helpers.DateLayout.
This abstract layout takes care of all the date related options and formatting work.
DateLayout() - Constructor for class org.apache.log4j.helpers.DateLayout
 
DateTimeDateFormat - class org.apache.log4j.helpers.DateTimeDateFormat.
Formats a Date in the format "dd MMM YYYY HH:mm:ss,SSS" for example, "06 Nov 1994 15:49:37,459".
DateTimeDateFormat() - Constructor for class org.apache.log4j.helpers.DateTimeDateFormat
 
DateTimeDateFormat(TimeZone) - Constructor for class org.apache.log4j.helpers.DateTimeDateFormat
 
DEBUG - Static variable in class org.apache.log4j.Priority
The DEBUG priority designates fine-grained informational events that are most useful to debug an application.
DEBUG_INT - Static variable in class org.apache.log4j.Priority
 
DEBUG_KEY - Static variable in class org.apache.log4j.helpers.LogLog
Defining this value makes log4j print log4j-internal debug statements to System.out.
debug(Object) - Method in class org.apache.log4j.Category
Log a message object with the DEBUG priority.
debug(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the DEBUG priority including the stack trace of the Throwable t passed as parameter.
debug(String) - Method in class org.apache.log4j.examples.MyCategory
Overrides the standard debug method by appending " world" at the end of each message.
debug(String) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal debug statements.
debug(String) - Method in class org.apache.log4j.xml.examples.XCategory
Overrides the standard debug method by appending the value of suffix variable to each message.
debug(String, Throwable) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal debug statements.
debugEnabled - Static variable in class org.apache.log4j.helpers.LogLog
 
decide(LoggingEvent) - Method in class org.apache.log4j.spi.Filter
If the decision is DENY, then the event will be dropped.
decide(LoggingEvent) - Method in class org.apache.log4j.varia.StringMatchFilter
Returns Filter.NEUTRAL is there is no string match.
decide(LoggingEvent) - Method in class org.apache.log4j.varia.PriorityRangeFilter
Return the decision of this filter.
decide(LoggingEvent) - Method in class org.apache.log4j.varia.PriorityMatchFilter
Return the decision of this filter.
decide(LoggingEvent) - Method in class org.apache.log4j.varia.DenyAllFilter
Always returns the integer constant Filter.DENY regardless of the LoggingEvent parameter.
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.Category
This string constant is set to log4j.properties the name of the file that will be searched by default in classpath.
DEFAULT_CONFIGURATION_KEY - Static variable in class org.apache.log4j.Category
This string constant is set to log4j.configuration.
DEFAULT_CONVERSION_PATTERN - Static variable in class org.apache.log4j.PatternLayout
Default pattern string for log output.
DEFAULT_DELAY - Static variable in class org.apache.log4j.helpers.FileWatchdog
The default delay between every file modification check, set to 60 seconds.
DEFAULT_INIT_OVERRIDE_KEY - Static variable in class org.apache.log4j.Category
Setting the system property log4j.defaultInitOverride to "true" or any other value than "false" will skip default configuration process.
defaultHierarchy - Static variable in class org.apache.log4j.Category
The hierarchy where categories are attached to by default.
delay - Variable in class org.apache.log4j.helpers.FileWatchdog
The delay to observe between every check.
delay(int) - Static method in class org.apache.log4j.examples.NumberCruncherServer
 
DENY - Static variable in class org.apache.log4j.spi.Filter
The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
DenyAllFilter - class org.apache.log4j.varia.DenyAllFilter.
This filter drops all logging events.
DenyAllFilter() - Constructor for class org.apache.log4j.varia.DenyAllFilter
 
DISABLE_KEY - Static variable in class org.apache.log4j.BasicConfigurator
DISABLE_KEY is the name of the constant holding the string value log4j.disable.
DISABLE_OVERRIDE_KEY - Static variable in class org.apache.log4j.BasicConfigurator
DISABLE_OVERRIDE_KEY is the name of the constant holding the string value log4j.disableOverride.
disable(Priority) - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().disable(p) instead.
disable(Priority) - Method in class org.apache.log4j.Hierarchy
Disable all logging requests of priority equal to or below the priority parameter p, for all categories in this hierarchy.
disable(String) - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().disable() instead.
disable(String) - Method in class org.apache.log4j.Hierarchy
Similar to Hierarchy.disable(Priority) except that the priority argument is given as a String.
disableAll() - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().disableAll() instead.
disableAll() - Method in class org.apache.log4j.Hierarchy
Disable all logging requests regardless of category and priority.
disableDebug() - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().disableDebug() instead.
disableDebug() - Method in class org.apache.log4j.Hierarchy
Disable all logging requests of priority DEBUG regardless of category.
disableInfo() - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().disableInfo() instead.
disableInfo() - Method in class org.apache.log4j.Hierarchy
Disable all logging requests of priority INFO and below regardless of category.
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.
doAppend(LoggingEvent) - Method in interface org.apache.log4j.Appender
Log in Appender specific way.
doAppend(LoggingEvent) - Method in class org.apache.log4j.performance.NullAppender
 
doCapitalize - Variable in class org.apache.log4j.config.PropertyPrinter
 
doConfigure(InputStream, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
Configure log4j by reading in a log4j.dtd compliant XML configuration file.
doConfigure(Properties, Hierarchy) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration options from properties.
doConfigure(String, Hierarchy) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration from a file.
doConfigure(String, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
 
doConfigure(URL, Hierarchy) - Method in class org.apache.log4j.PropertyConfigurator
Read configuration options from url configURL.
doConfigure(URL, Hierarchy) - Method in interface org.apache.log4j.spi.Configurator
Interpret a resource pointed by a URL and set up log4j accordingly.
doConfigure(URL, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
 
DOMConfigurator - class org.apache.log4j.xml.DOMConfigurator.
Use this class to initialize the log4j environment using a DOM tree.
DOMConfigurator() - Constructor for class org.apache.log4j.xml.DOMConfigurator
No argument constructor.
doOnChange() - Method in class org.apache.log4j.helpers.FileWatchdog
 
doRender(Object) - Method in class org.apache.log4j.or.MessageRenderer
Render a Message.
doRender(Object) - Method in interface org.apache.log4j.or.ObjectRenderer
Render the object passed as parameter as a String.
doRender(Object) - Method in class org.apache.log4j.or.ThreadGroupRenderer
Render a ThreadGroup object similar to the way that the ThreadGroup.list() method output information.

E

enableAll() - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use Category.getDefaultHierarchy().enableAll() instead.
enableAll() - Method in class org.apache.log4j.Hierarchy
Undoes the effect of calling any of Hierarchy.disable(java.lang.String), Hierarchy.disableAll(), Hierarchy.disableDebug() and Hierarchy.disableInfo() methods.
ERROR - Static variable in class org.apache.log4j.Priority
The ERROR priority designates error events that might still allow the application to continue running.
ERROR_INT - Static variable in class org.apache.log4j.Priority
 
error(Object) - Method in class org.apache.log4j.Category
Log a message object with the ERROR priority.
error(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the ERROR priority including the stack trace of the Throwable t passed as parameter.
error(SAXParseException) - Method in class org.apache.log4j.xml.examples.ReportParserError
 
error(String) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal error statements.
error(String) - Method in class org.apache.log4j.helpers.OnlyOnceErrorHandler
Print a the error message passed as parameter on System.err.
error(String) - Method in interface org.apache.log4j.spi.ErrorHandler
This method prints the error message passed as a parameter.
error(String, Exception, int) - Method in class org.apache.log4j.helpers.OnlyOnceErrorHandler
Prints the message and the stack trace of the exception on System.err.
error(String, Exception, int) - Method in interface org.apache.log4j.spi.ErrorHandler
This method should handle the error.
error(String, Throwable) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal error statements.
ErrorCode - interface org.apache.log4j.spi.ErrorCode.
This interface defines commonly encoutered error codes.
errorHandler - Variable in class org.apache.log4j.AppenderSkeleton
It is assumed and enforced that errorHandler is never null.
errorHandler - Variable in class org.apache.log4j.helpers.QuietWriter
 
ErrorHandler - interface org.apache.log4j.spi.ErrorHandler.
Appenders may delegate their error handling to ErrorHandlers.
evaluator - Variable in class org.apache.log4j.net.SMTPAppender
 
EVALUATOR_CLASS_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
exists(String) - Static method in class org.apache.log4j.Category
If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns null.
exists(String) - Method in class org.apache.log4j.Hierarchy
Check if the named category exists in the hierarchy.
ExternallyRolledFileAppender - class org.apache.log4j.varia.ExternallyRolledFileAppender.
This appender listens on a socket on the port specified by the ExternallyRolledFileAppender.PORT_OPTION for a "RollOver" message.
ExternallyRolledFileAppender() - Constructor for class org.apache.log4j.varia.ExternallyRolledFileAppender
The default constructor does nothing but calls its super-class constructor.

F

FACILITY_OI - Static variable in class org.apache.log4j.net.SyslogAppender
 
FACILITY_OPTION - Static variable in class org.apache.log4j.net.SyslogAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
FACILITY_PRINTING_OPTION - Static variable in class org.apache.log4j.net.SyslogAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
factor(int) - Method in interface org.apache.log4j.examples.NumberCruncher
Factor a positive integer number and return its distinct factor's as an integer array.
factor(int) - Method in class org.apache.log4j.examples.NumberCruncherServer
 
FATAL - Static variable in class org.apache.log4j.Priority
The FATAL priority designates very severe error events that will presumably lead the application to abort.
FATAL_INT - Static variable in class org.apache.log4j.Priority
 
fatal(Object) - Method in class org.apache.log4j.Category
Log a message object with the FATAL priority.
fatal(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the FATAL priority including the stack trace of the Throwable t passed as parameter.
fatalError(SAXParseException) - Method in class org.apache.log4j.xml.examples.ReportParserError
 
FILE_OPEN_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
FILE_OPTION - Static variable in class org.apache.log4j.FileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
fileAppend - Variable in class org.apache.log4j.FileAppender
Append to or truncate the file?
FileAppender - class org.apache.log4j.FileAppender.
FileAppender appends log events to a file.
FileAppender() - Constructor for class org.apache.log4j.FileAppender
The default constructor does not do anything.
FileAppender(Layout, OutputStream) - Constructor for class org.apache.log4j.FileAppender
Deprecated. The functionality of this constructor form has been replaced by the WriterAppender. This constructor will be removed in the near term.
FileAppender(Layout, String) - 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, Writer) - Constructor for class org.apache.log4j.FileAppender
Deprecated. The functionality of constructor form has been replaced by the WriterAppender. This constructor will be removed in the near term.
filename - Variable in class org.apache.log4j.helpers.FileWatchdog
The name of the file to observe for changes.
fileName - Variable in class org.apache.log4j.FileAppender
The name of the log file.
FileWatchdog - class org.apache.log4j.helpers.FileWatchdog.
Check every now and then that a certain file has not changed.
FileWatchdog(String) - Constructor for class org.apache.log4j.helpers.FileWatchdog
 
Filter - class org.apache.log4j.spi.Filter.
Users should extend this class to implement customized logging event filtering.
Filter() - Constructor for class org.apache.log4j.spi.Filter
 
finalize() - Method in class org.apache.log4j.AppenderSkeleton
Finalize this appender by calling the imlenentation's close method.
finalize() - Method in class org.apache.log4j.nt.NTEventLogAppender
 
finalizeConverter(char) - Method in class org.apache.log4j.examples.MyPatternParser
 
finalizeConverter(char) - Method in class org.apache.log4j.examples.appserver.AppServerPatternParser
Decide, based on the format character, which subtype of Converter to instanciate.
finalizeConverter(char) - Method in class org.apache.log4j.helpers.PatternParser
 
findAndRender(Object) - Method in class org.apache.log4j.or.RendererMap
Find the appropriate renderer for the class type of the o parameter.
findAndSubst(String, Properties) - Static method in class org.apache.log4j.helpers.OptionConverter
Find the value corresponding to key in props.
findAppenderByReference(Element) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse appenders by IDREF.
FLUSH_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
flush() - Method in class org.apache.log4j.helpers.QuietWriter
 
flush() - Method in class org.apache.log4j.helpers.SyslogWriter
 
flush() - Method in class org.apache.log4j.performance.NOPWriter
 
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.
forcedLog(String, Priority, Object, Throwable) - Method in class org.apache.log4j.examples.appserver.AppServerCategory
This method is overridden to ensure an instance of AppServerLoggingEvent is sent to the appenders.
format(Date, StringBuffer, FieldPosition) - Method in class org.apache.log4j.helpers.AbsoluteTimeDateFormat
Appends to sbuf the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459"
format(Date, StringBuffer, FieldPosition) - Method in class org.apache.log4j.helpers.ISO8601DateFormat
Appends a date in the format "YYYY-mm-dd HH:mm:ss,SSS" to sbuf.
format(Date, StringBuffer, FieldPosition) - Method in class org.apache.log4j.helpers.DateTimeDateFormat
Appends to sbuf the date in the format "dd MMM YYYY HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
format(Date, StringBuffer, FieldPosition) - Method in class org.apache.log4j.helpers.RelativeTimeDateFormat
Appends to sbuf the number of milliseconds elapsed since the start of the application.
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.SimpleLayout
Returns the log statement in a format consisting of the priority, followed by " - " and then the message.
format(LoggingEvent) - Method in class org.apache.log4j.TTCCLayout
In addition to the priority of the statement and message, the returned byte array includes time, thread, category and NDC information.
format(LoggingEvent) - Method in class org.apache.log4j.HTMLLayout
 
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.xml.XMLLayout
Formats a LoggingEvent in conformance with the log4j.dtd.
format(StringBuffer, LoggingEvent) - Method in class org.apache.log4j.helpers.PatternConverter
A template method for formatting in a converter specific way.
formattingInfo - Variable in class org.apache.log4j.helpers.PatternParser
 
FormattingInfo - class org.apache.log4j.helpers.FormattingInfo.
FormattingInfo instances contain the information obtained when parsing formatting modifiers in conversion modifiers.
FormattingInfo() - Constructor for class org.apache.log4j.helpers.FormattingInfo
 
foundProperty(Object, String, String, Object) - Method in interface org.apache.log4j.config.PropertyGetter.PropertyCallback
 
foundProperty(Object, String, String, Object) - Method in class org.apache.log4j.config.PropertyPrinter
 
fqnOfCategoryClass - Variable in class org.apache.log4j.spi.LoggingEvent
Fully qualified name of the calling category class.
FROM_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
fullInfo - Variable in class org.apache.log4j.spi.LocationInfo
All available caller information, in the format fully.qualified.classname.of.caller.methodName(Filename.java:line)

G

genAppName() - Method in class org.apache.log4j.config.PropertyPrinter
 
GENERIC_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
get() - Static method in class org.apache.log4j.NDC
Used when printing the diagnostic context.
get() - Method in class org.apache.log4j.helpers.CyclicBuffer
Get the oldest (first) element in the buffer.
get() - Method in class org.apache.log4j.helpers.BoundedFIFO
Get the first element in the buffer.
get(Class) - Method in class org.apache.log4j.or.RendererMap
Search the parents of clazz for a renderer.
get(int) - Method in class org.apache.log4j.helpers.CyclicBuffer
Get the ith oldest event currently in the buffer.
get(Object) - Method in class org.apache.log4j.or.RendererMap
Syntactic sugar method that calls RendererMap.get(Class) with the class of the object parameter.
getAcceptOnMatch() - Method in class org.apache.log4j.varia.StringMatchFilter
 
getAcceptOnMatch() - Method in class org.apache.log4j.varia.PriorityRangeFilter
Get the value of the AcceptOnMatch option.
getAcceptOnMatch() - Method in class org.apache.log4j.varia.PriorityMatchFilter
 
getAdditivity() - Method in class org.apache.log4j.Category
Get the additivity flag for this Category instance.
getAllAppenders() - Method in class org.apache.log4j.Category
Get the appenders contained in this category as an Enumeration.
getAllAppenders() - Method in class org.apache.log4j.AsyncAppender
 
getAllAppenders() - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Get all attached appenders as an Enumeration.
getAllAppenders() - Method in interface org.apache.log4j.spi.AppenderAttachable
Get all previously added appenders as an Enumeration.
getAllPossiblePriorities() - Static method in class org.apache.log4j.Priority
Return all possible priorities as an array of Priority objects in descending order.
getAppend() - Method in class org.apache.log4j.FileAppender
Returns the value of the Append option.
getAppender(String) - Method in class org.apache.log4j.Category
Look for the appender named as name.
getAppender(String) - Method in class org.apache.log4j.AsyncAppender
 
getAppender(String) - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Look for an attached appender named as name.
getAppender(String) - Method in interface org.apache.log4j.spi.AppenderAttachable
Get an appender by name.
getBufferSize() - Method in class org.apache.log4j.AsyncAppender
Returns the current value of the BufferSize option.
getBufferSize() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the BufferSize option.
getCategoryPrefixing() - Method in class org.apache.log4j.TTCCLayout
Returns value of the CategoryPrefixing option.
getChainedPriority() - Method in class org.apache.log4j.Category
Starting from this category, search the category hierarchy for a non-null priority and return it.
getChainedPriority() - Method in class org.apache.log4j.spi.RootCategory
Return the assigned priority value without walking the category hierarchy.
getClassName() - Method in class org.apache.log4j.spi.LocationInfo
Return the fully qualified class name of the caller making the logging request.
getComponent() - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Get the name of the component for which this category is logging.
getComponent() - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Get the component name for this category.
getContentType() - Method in class org.apache.log4j.Layout
Returns the content type output by this layout.
getContentType() - Method in class org.apache.log4j.HTMLLayout
Returns the content type output by this layout, i.e "text/html".
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.
getCount() - Method in class org.apache.log4j.helpers.CountingQuietWriter
 
getCurrentCategories() - Static method in class org.apache.log4j.Category
Returns all the currently defined categories in the default hierarchy as an Enumeration.
getCurrentCategories() - Method in class org.apache.log4j.Hierarchy
Returns all the currently defined categories in this hierarchy as an Enumeration.
getDateFormat() - Method in class org.apache.log4j.helpers.DateLayout
Returns value of the DateFormat option.
getDatePattern() - Method in class org.apache.log4j.DailyRollingFileAppender
Returns the value of the DatePattern option.
getDefaultHierarchy() - Static method in class org.apache.log4j.Category
Return the default Hierarchy instance.
getDefaultRenderer() - Method in class org.apache.log4j.or.RendererMap
 
getDepth() - Static method in class org.apache.log4j.NDC
Get the current nesting depth of this diagnostic context.
getErrorHandler() - Method in class org.apache.log4j.AppenderSkeleton
Return the currently set ErrorHandler for this Appender.
getErrorHandler() - Method in interface org.apache.log4j.Appender
Returns the ErrorHandler for this appender.
getEvaluatorClass() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the EvaluatorClass option.
getFacility() - Method in class org.apache.log4j.net.SyslogAppender
Returns the value of the Facility option.
getFacility(String) - Static method in class org.apache.log4j.net.SyslogAppender
Returns the integer value corresponding to the named syslog facility, or -1 if it couldn't be recognized.
getFacilityPrinting() - Method in class org.apache.log4j.net.SyslogAppender
Returns the value of the FacilityPrinting option.
getFacilityString(int) - Static method in class org.apache.log4j.net.SyslogAppender
Returns the specified syslog facility as a lower-case String, e.g.
getFile() - Method in class org.apache.log4j.FileAppender
Returns the value of the File option.
getFileName() - Method in class org.apache.log4j.spi.LocationInfo
Return the file name of the caller.
getFilter() - Method in class org.apache.log4j.AppenderSkeleton
Returns the head Filter.
getFilter() - Method in interface org.apache.log4j.Appender
Returns the head Filter.
getFirstFilter() - Method in class org.apache.log4j.AppenderSkeleton
Return the first filter in the filter chain for this Appender.
getFooter() - Method in class org.apache.log4j.Layout
Returns the footer for the layout format.
getFooter() - Method in class org.apache.log4j.HTMLLayout
Returns the appropriate HTML footers.
getFrom() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the From option.
getHeader() - Method in class org.apache.log4j.Layout
Returns the header for the layout format.
getHeader() - Method in class org.apache.log4j.HTMLLayout
Returns appropriate HTML headers.
getHierarchy() - Method in class org.apache.log4j.Category
Return the the Hierarchy where this Category instance is attached.
getHostname() - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Get the hostname of the machine on which this category is running.
getHostname() - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Get the hostname for this category.
getImmediateFlush() - Method in class org.apache.log4j.WriterAppender
Returns value of the ImmediateFlush option.
getInstance() - Static method in class org.apache.log4j.helpers.NullEnumeration
 
getInstance(Class) - Static method in class org.apache.log4j.Category
Shorthand for getInstance(clazz.getName()).
getInstance(Class) - Static method in class org.apache.log4j.xml.examples.XCategory
This method overrides Category.getInstance(Class) by supplying its own factory type as a parameter.
getInstance(String) - Static method in class org.apache.log4j.Category
Retrieve a category with named as the name parameter.
getInstance(String) - Method in class org.apache.log4j.Hierarchy
Return a new category instance named as the first parameter using the default factory.
getInstance(String) - Static method in class org.apache.log4j.examples.MyCategory
This method overrides Category.getInstance(java.lang.String) by supplying its own factory type as a parameter.
getInstance(String) - Static method in class org.apache.log4j.examples.appserver.AppServerCategory
Return an AppServerCategory instance with the provided name.
getInstance(String) - Static method in class org.apache.log4j.xml.examples.XCategory
This method overrides Category.getInstance(java.lang.String) by supplying its own factory type as a parameter.
getInstance(String, CategoryFactory) - Static method in class org.apache.log4j.Category
Like Category.getInstance(String) except that the type of category instantiated depends on the type returned by the CategoryFactory.makeNewCategoryInstance(java.lang.String) method of the factory parameter.
getInstance(String, CategoryFactory) - Method in class org.apache.log4j.Hierarchy
Return a new category instance named as the first parameter using factory.
getLayout() - Method in class org.apache.log4j.AppenderSkeleton
Returns the layout of this appender.
getLayout() - Method in interface org.apache.log4j.Appender
Returns this appenders layout.
getLineNumber() - Method in class org.apache.log4j.spi.LocationInfo
Returns the line number of the caller.
getLocationInfo() - Method in class org.apache.log4j.HTMLLayout
Returns the current value of the LocationInfo option.
getLocationInfo() - Method in class org.apache.log4j.AsyncAppender
Returns the current value of the LocationInfo option.
getLocationInfo() - Method in class org.apache.log4j.net.SocketAppender
Returns value of the LocationInfo option.
getLocationInfo() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the LocationInfo option.
getLocationInfo() - Method in class org.apache.log4j.xml.XMLLayout
Returns the current value of the LocationInfo option.
getLocationInformation() - Method in class org.apache.log4j.spi.LoggingEvent
Set the location information for this logging event.
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.
getMaxSize() - Method in class org.apache.log4j.helpers.CyclicBuffer
 
getMaxSize() - Method in class org.apache.log4j.helpers.BoundedFIFO
Get the maximum size of the buffer.
getMessage() - Method in class org.apache.log4j.config.PropertySetterException
Returns descriptive text on the cause of this exception.
getMessage() - Method in class org.apache.log4j.spi.LoggingEvent
Return the message for this logging event.
getMethodName() - Method in class org.apache.log4j.spi.LocationInfo
Returns the method name of the caller.
getName() - Method in class org.apache.log4j.Category
Return the category name.
getName() - Method in class org.apache.log4j.AppenderSkeleton
Returns the name of this FileAppender.
getName() - Method in interface org.apache.log4j.Appender
Get the name of this appender.
getNDC() - Method in class org.apache.log4j.spi.LoggingEvent
 
getOption(String) - Method in class org.apache.log4j.xml.examples.XCategory
 
getOptionStrings() - Method in class org.apache.log4j.SimpleLayout
 
getOptionStrings() - Method in class org.apache.log4j.TTCCLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
getOptionStrings() - Method in class org.apache.log4j.HTMLLayout
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.PatternLayout
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.AppenderSkeleton
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.WriterAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.FileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.ConsoleAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.DailyRollingFileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.RollingFileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.AsyncAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.helpers.DateLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
getOptionStrings() - Method in class org.apache.log4j.helpers.OnlyOnceErrorHandler
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.net.SyslogAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.net.SocketAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.net.JMSAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.net.SMTPAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.nt.NTEventLogAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in interface org.apache.log4j.spi.OptionHandler
Deprecated. We now use JavaBeans style getters/setters.
getOptionStrings() - Method in class org.apache.log4j.varia.StringMatchFilter
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.varia.PriorityRangeFilter
Deprecated. We now use JavaBeans introspection to configure components.
getOptionStrings() - Method in class org.apache.log4j.varia.PriorityMatchFilter
Deprecated. We now use JavaBeans introspection to configure components.
getOptionStrings() - Method in class org.apache.log4j.varia.ExternallyRolledFileAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.varia.DenyAllFilter
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.xml.XMLLayout
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
getOptionStrings() - Method in class org.apache.log4j.xml.examples.XCategory
Retuns the option names for this component, namely the string XCategory.SUFFIX_OPTION.
getPort() - Method in class org.apache.log4j.net.SocketAppender
Returns value of the Port option.
getPort() - Method in class org.apache.log4j.varia.ExternallyRolledFileAppender
Returns value of the Port option.
getPriority() - Method in class org.apache.log4j.Category
Returns the assigned Priority, if any, for this Category.
getPriorityMax() - Method in class org.apache.log4j.varia.PriorityRangeFilter
Get the value of the PriorityMax option.
getPriorityMin() - Method in class org.apache.log4j.varia.PriorityRangeFilter
Get the value of the PriorityMin option.
getPriorityToMatch() - Method in class org.apache.log4j.varia.PriorityMatchFilter
 
getProperties(Object, PropertyGetter.PropertyCallback, String) - Static method in class org.apache.log4j.config.PropertyGetter
 
getProperties(PropertyGetter.PropertyCallback, String) - Method in class org.apache.log4j.config.PropertyGetter
 
getPropertyDescriptor(String) - Method in class org.apache.log4j.config.PropertySetter
 
getPropertyDescriptors() - Method in class org.apache.log4j.RollingFileAppenderBeanInfo
 
getReconnectionDelay() - Method in class org.apache.log4j.net.SocketAppender
Returns value of the ReconnectionDelay option.
getRemoteHost() - Method in class org.apache.log4j.net.SocketAppender
Returns value of the RemoteHost option.
getRenderedMessage() - Method in class org.apache.log4j.spi.LoggingEvent
 
getRendererMap() - Method in class org.apache.log4j.Hierarchy
Get the renderer map for this hierarchy.
getResource(String, Class) - Static method in class org.apache.log4j.helpers.Loader
This method will search for resource in different places.
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
Return the root of the default category hierrachy.
getRoot() - Method in class org.apache.log4j.Hierarchy
Get the root of this hierarchy.
getServer() - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Get the name of the server process in which this category is running.
getServer() - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Get the server name for this category.
getSMTPHost() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the SMTPHost option.
getSource() - Method in class org.apache.log4j.nt.NTEventLogAppender
 
getStartTime() - Static method in class org.apache.log4j.spi.LoggingEvent
Returns the time when the application started, in milliseconds elapsed since 01.01.1970.
getStringToMatch() - Method in class org.apache.log4j.varia.StringMatchFilter
 
getSubject() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the Subject option.
getSyslogEquivalent() - Method in class org.apache.log4j.Priority
Return the syslog equivalent of this priority as an integer.
getSyslogHost() - Method in class org.apache.log4j.net.SyslogAppender
Returns the value of the SyslogHost option.
getSystemProperty(String, String) - Static method in class org.apache.log4j.helpers.OptionConverter
Very similar to System.getProperty except that the SecurityException is hidden.
getTarget() - Method in class org.apache.log4j.ConsoleAppender
Returns the current value of the Target option.
getThreadName() - Method in class org.apache.log4j.spi.LoggingEvent
 
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 priority.
getThrowable() - Method in class org.apache.log4j.spi.ThrowableInformation
 
getThrowableInformation() - Method in class org.apache.log4j.spi.LoggingEvent
Returns the throwable information contained within this event.
getThrowableStrRep() - Method in class org.apache.log4j.spi.LoggingEvent
Return this event's throwable's string[] representaion.
getThrowableStrRep() - Method in class org.apache.log4j.spi.ThrowableInformation
 
getTimeZone() - Method in class org.apache.log4j.helpers.DateLayout
Returns value of the TimeZone option.
getTitle() - Method in class org.apache.log4j.HTMLLayout
Returns the current value of the Title option.
getTo() - Method in class org.apache.log4j.net.SMTPAppender
Returns value of the To option.
getTopicBindingName() - Method in class org.apache.log4j.net.JMSAppender
Returns the value of the TopicBindingName option.
getTopicConnectionFactoryBindingName() - Method in class org.apache.log4j.net.JMSAppender
Returns the value of the TopicConnectionFactoryBindingName option.
getVersion() - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Get the version name of the component in which this category is running.
getVersion() - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Get the version name for this category.

H

hasMoreElements() - Method in class org.apache.log4j.helpers.NullEnumeration
 
headFilter - Variable in class org.apache.log4j.AppenderSkeleton
The first filter in the filter chain.
hierarchy - Variable in class org.apache.log4j.Category
 
Hierarchy - class org.apache.log4j.Hierarchy.
This class is specialized in retrieving categories by name and also maintaining the category hierarchy.
Hierarchy(Category) - Constructor for class org.apache.log4j.Hierarchy
Create a new Category hierarchy.
hostname - Variable in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
The hostname on which this factory resides.
hostname - Variable in class org.apache.log4j.examples.appserver.AppServerCategory
The hostname on which this category resides.
hostname - Variable in class org.apache.log4j.examples.appserver.AppServerLoggingEvent
Hostname of machine from which this event originated.
HOSTNAME_CHAR - Static variable in class org.apache.log4j.examples.appserver.AppServerPatternParser
Set to 'h'.
HTMLLayout - class org.apache.log4j.HTMLLayout.
This layout outputs events in a HTML table.
HTMLLayout() - Constructor for class org.apache.log4j.HTMLLayout
 

I

i - Variable in class org.apache.log4j.helpers.PatternParser
 
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.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.
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.PatternLayout
The PatternLayout does not handle the throwable contained within LoggingEvents.
ignoresThrowable() - Method in class org.apache.log4j.xml.XMLLayout
The XMLLayout prints and does not ignore exceptions.
IMMEDIATE_FLUSH_OPTION - Static variable in class org.apache.log4j.WriterAppender
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed.
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 - Static variable in class org.apache.log4j.Priority
The INFO priority designates informational messages that highlight the progress of the application at coarse-grained level.
INFO_INT - Static variable in class org.apache.log4j.Priority
 
info(Object) - Method in class org.apache.log4j.Category
Log a message object with the INFO priority.
info(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message object with the INFO priority including the stack trace of the Throwable t passed as parameter.
inherit(Stack) - Static method in class org.apache.log4j.NDC
Inherit the diagnostic context of another thread.
INHERITED - Static variable in class org.apache.log4j.BasicConfigurator
Special priority value signifying inherited behaviour.
instantiateByClassName(String, Class, Object) - Static method in class org.apache.log4j.helpers.OptionConverter
Instantiate an object given a class name.
instantiateByKey(Properties, String, Class, Object) - Static method in class org.apache.log4j.helpers.OptionConverter
 
introspect() - Method in class org.apache.log4j.config.PropertySetter
Uses JavaBeans Introspector to computer setters of object to be configured.
isAsSevereAsThreshold(Priority) - Method in class org.apache.log4j.AppenderSkeleton
Check whether the message priority is below the appender's threshold.
isDebugEnabled() - Method in class org.apache.log4j.Category
Check whether this category is enabled for the DEBUG priority.
isDisabled(int) - Method in class org.apache.log4j.Hierarchy
 
isEnabledFor(Priority) - Method in class org.apache.log4j.Category
Check whether this category is enabled for a given Priority passed as parameter.
isFull() - Method in class org.apache.log4j.helpers.BoundedFIFO
Return true if the buffer is full, i.e. of the number of elements in the buffer equals the buffer size.
isGenAppName(String) - Method in class org.apache.log4j.config.PropertyPrinter
Returns true if the specified appender name is considered to have been generated, i.e. if it is of the form A[0-9]+.
isGreaterOrEqual(Priority) - Method in class org.apache.log4j.Priority
Returns true if this priority has a higher or equal priority than the priority passed as argument, false otherwise.
isHandledType(Class) - Method in class org.apache.log4j.config.PropertyGetter
 
isInfoEnabled() - Method in class org.apache.log4j.Category
Check whether this category is enabled for the info priority.
ISO8601_DATE_FORMAT - Static variable in class org.apache.log4j.helpers.AbsoluteTimeDateFormat
String constant used to specify ISO8601DateFormat in layouts.
ISO8601DateFormat - class org.apache.log4j.helpers.ISO8601DateFormat.
Formats a Date in the format "YYYY-mm-dd HH:mm:ss,SSS" for example "1999-11-27 15:49:37,459".
ISO8601DateFormat() - Constructor for class org.apache.log4j.helpers.ISO8601DateFormat
 
ISO8601DateFormat(TimeZone) - Constructor for class org.apache.log4j.helpers.ISO8601DateFormat
 
isTriggeringEvent(LoggingEvent) - Method in interface org.apache.log4j.spi.TriggeringEventEvaluator
Is this the triggering event?

J

JMSAppender - class org.apache.log4j.net.JMSAppender.
A simple appender based on JMS.
JMSAppender() - Constructor for class org.apache.log4j.net.JMSAppender
 
JMSSink - class org.apache.log4j.net.JMSSink.
A simple application receiving the logging events sent by a JMSAppender.
JMSSink() - Constructor for class org.apache.log4j.net.JMSSink
 

L

l7dlog(Priority, String, Object[], Throwable) - Method in class org.apache.log4j.Category
Log a localized and parameterized message.
l7dlog(Priority, String, Throwable) - Method in class org.apache.log4j.Category
Log a localized 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 org.apache.log4j.Layout.
Extend this abstract class to create your own log layout format.
Layout() - Constructor for class org.apache.log4j.Layout
 
layoutNames - Variable in class org.apache.log4j.config.PropertyPrinter
 
length() - Method in class org.apache.log4j.helpers.CyclicBuffer
Get the number of elements in the buffer.
length() - Method in class org.apache.log4j.helpers.BoundedFIFO
Get the number of elements in the buffer.
LETHAL - Static variable in class org.apache.log4j.xml.examples.XPriority
 
lethal(String) - Method in class org.apache.log4j.xml.examples.XCategory
We introduce a new printing method in order to support XPriority.LETHAL.
lethal(String, Throwable) - Method in class org.apache.log4j.xml.examples.XCategory
We introduce a new printing method in order to support XPriority.LETHAL.
LINE_SEP - Static variable in class org.apache.log4j.Layout
 
LINE_SEP_LEN - Static variable in class org.apache.log4j.Layout
 
ListVsVector - class org.apache.log4j.performance.ListVsVector.
Compares the performance of looping through a list versus a Vector.
ListVsVector() - Constructor for class org.apache.log4j.performance.ListVsVector
 
Loader - class org.apache.log4j.helpers.Loader.
Load resources (or images) from various sources.
Loader() - Constructor for class org.apache.log4j.helpers.Loader
 
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.
LOCATION_INFO_OPTION - Static variable in class org.apache.log4j.AsyncAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
LOCATION_INFO_OPTION - Static variable in class org.apache.log4j.net.SocketAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
LOCATION_INFO_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
LOCATION_INFO_OPTION - Static variable in class org.apache.log4j.xml.XMLLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
LocationInfo - class org.apache.log4j.spi.LocationInfo.
The internal representation of caller location information.
LocationInfo(Throwable, String) - Constructor for class org.apache.log4j.spi.LocationInfo
Instantiate location information based on a Throwable.
LOG_AUTH - Static variable in class org.apache.log4j.net.SyslogAppender
security/authorization messages
LOG_AUTHPRIV - Static variable in class org.apache.log4j.net.SyslogAppender
security/authorization messages (private)
LOG_CRON - Static variable in class org.apache.log4j.net.SyslogAppender
clock daemon
LOG_DAEMON - Static variable in class org.apache.log4j.net.SyslogAppender
System daemons
LOG_FTP - Static variable in class org.apache.log4j.net.SyslogAppender
ftp daemon
LOG_KERN - Static variable in class org.apache.log4j.net.SyslogAppender
Kernel messages
LOG_LOCAL0 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL1 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL2 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL3 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL4 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL5 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL6 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LOCAL7 - Static variable in class org.apache.log4j.net.SyslogAppender
reserved for local use
LOG_LPR - Static variable in class org.apache.log4j.net.SyslogAppender
line printer subsystem
LOG_MAIL - Static variable in class org.apache.log4j.net.SyslogAppender
Mail system
LOG_NEWS - Static variable in class org.apache.log4j.net.SyslogAppender
network news subsystem
LOG_SYSLOG - Static variable in class org.apache.log4j.net.SyslogAppender
messages generated internally by syslogd
LOG_USER - Static variable in class org.apache.log4j.net.SyslogAppender
Random user-level messages
LOG_UUCP - Static variable in class org.apache.log4j.net.SyslogAppender
UUCP subsystem
log(Priority, Object) - Method in class org.apache.log4j.Category
This generic form is intended to be used by wrappers.
log(Priority, Object, Throwable) - 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.
Logging - class org.apache.log4j.performance.Logging.
Measure the performance of logging.
Logging() - Constructor for class org.apache.log4j.performance.Logging
 
LoggingEvent - class org.apache.log4j.spi.LoggingEvent.
The internal representation of logging events.
LoggingEvent(String, Category, Priority, Object, Throwable) - Constructor for class org.apache.log4j.spi.LoggingEvent
Instantiate a LoggingEvent from the supplied parameters.
LogLog - class org.apache.log4j.helpers.LogLog.
This class used to output log statements from within the log4j package.
LogLog() - Constructor for class org.apache.log4j.helpers.LogLog
 
lookup(Context, String) - Static method in class org.apache.log4j.net.JMSSink
 
lookup(Context, String) - Method in class org.apache.log4j.net.JMSAppender
 

M

main(String[]) - Static method in class org.apache.log4j.config.PropertyPrinter
 
main(String[]) - Static method in class org.apache.log4j.examples.MyCategory
When called wihtout arguments, this program will just print DEBUG [main] some.cat - Hello world.
main(String[]) - Static method in class org.apache.log4j.examples.MyPatternLayout
 
main(String[]) - Static method in class org.apache.log4j.examples.NumberCruncherClient
 
main(String[]) - Static method in class org.apache.log4j.examples.Sort
 
main(String[]) - Static method in class org.apache.log4j.examples.NumberCruncherServer
 
main(String[]) - Static method in class org.apache.log4j.examples.Trivial
 
main(String[]) - Static method in class org.apache.log4j.net.SocketServer
 
main(String[]) - Static method in class org.apache.log4j.net.SimpleSocketServer
 
main(String[]) - Static method in class org.apache.log4j.net.JMSSink
 
main(String[]) - Static method in class org.apache.log4j.performance.ListVsVector
 
main(String[]) - Static method in class org.apache.log4j.performance.SystemTime
 
main(String[]) - Static method in class org.apache.log4j.performance.Logging
Usage: java org.apache.log4j.performance.Logging confFile runLength [delay] [burstLen] confFile is an XML configuration file and runLength (integer) is the length of test loop, delay is the time in millisecs to sleep every bustLen log requests.
main(String[]) - Static method in class org.apache.log4j.performance.ConcatVsArray
 
main(String[]) - Static method in class org.apache.log4j.performance.NotLogging
 
main(String[]) - Static method in class org.apache.log4j.performance.NewVsSetLen
 
main(String[]) - Static method in class org.apache.log4j.varia.Roller
Send a "RollOver" message to ExternallyRolledFileAppender on host and port.
main(String[]) - Static method in class org.apache.log4j.xml.examples.XTest
This program will just print DEBUG [main] some.cat - Hello world.
main(String[]) - Static method in class org.apache.log4j.xml.examples.XMLSample
 
makeNewCategoryInstance(String) - Method in class org.apache.log4j.examples.MyCategoryFactory
 
makeNewCategoryInstance(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Create a new instance of AppServerCategory using the information contained in this instance.
makeNewCategoryInstance(String) - Method in interface org.apache.log4j.spi.CategoryFactory
 
makeNewCategoryInstance(String) - Method in class org.apache.log4j.xml.examples.XCategory.XFactory
 
MAX_BACKUP_INDEX_OPTION - Static variable in class org.apache.log4j.RollingFileAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
MAX_CAPACITY - Variable in class org.apache.log4j.HTMLLayout
 
MAX_CAPACITY - Variable in class org.apache.log4j.PatternLayout
 
MAX_FILE_SIZE_OPTION - Static variable in class org.apache.log4j.RollingFileAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
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.
messageBundle - Variable in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
The message bundle to be used by AppServerCategory instances.
MessageRenderer - class org.apache.log4j.or.MessageRenderer.
Render javax.jms.Message objects.
MessageRenderer() - Constructor for class org.apache.log4j.or.MessageRenderer
 
MISSING_LAYOUT - Static variable in interface org.apache.log4j.spi.ErrorCode
 
msg - Variable in class org.apache.log4j.net.SMTPAppender
 
MyCategory - class org.apache.log4j.examples.MyCategory.
A simple example showing category subclassing.
MyCategory(String) - Constructor for class org.apache.log4j.examples.MyCategory
Just calls the parent constuctor.
MyCategoryFactory - class org.apache.log4j.examples.MyCategoryFactory.
A factory that makes new MyCategory objects.
MyCategoryFactory() - Constructor for class org.apache.log4j.examples.MyCategoryFactory
The constructor should be public as it will be called by configurators in different packages.
MyPatternLayout - class org.apache.log4j.examples.MyPatternLayout.
Example showing how to extend PatternLayout to recognize additional conversion characters.
MyPatternLayout() - Constructor for class org.apache.log4j.examples.MyPatternLayout
 
MyPatternLayout(String) - Constructor for class org.apache.log4j.examples.MyPatternLayout
 
MyPatternParser - class org.apache.log4j.examples.MyPatternParser.
Example showing how to extend PatternParser to recognize additional conversion characters.
MyPatternParser(String) - Constructor for class org.apache.log4j.examples.MyPatternParser
 

N

NA - Static variable in class org.apache.log4j.spi.LocationInfo
When location information is not available the constant NA is returned.
name - Variable in class org.apache.log4j.Category
The name of this category.
name - Variable in class org.apache.log4j.AppenderSkeleton
Appenders are named.
NDC - class org.apache.log4j.NDC.
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.
NEUTRAL - Static variable in class org.apache.log4j.spi.Filter
This filter is neutral with respect to the log event.
NewVsSetLen - class org.apache.log4j.performance.NewVsSetLen.
This program compares the cost of creating a new StringBuffer and converting it to a String versus keeping the same StringBuffer, setting its size to zero and then converting it to String.
NewVsSetLen() - Constructor for class org.apache.log4j.performance.NewVsSetLen
 
next - Variable in class org.apache.log4j.helpers.PatternConverter
 
next - Variable in class org.apache.log4j.spi.Filter
Points to the next filter in the filter chain.
nextElement() - Method in class org.apache.log4j.helpers.NullEnumeration
 
NOPWriter - class org.apache.log4j.performance.NOPWriter.
Extends Writer with methods that return immediately without doing anything.
NOPWriter() - Constructor for class org.apache.log4j.performance.NOPWriter
 
NotLogging - class org.apache.log4j.performance.NotLogging.
Measure the performance of evaluating whether to log or not to log, but not actually logging.
NotLogging() - Constructor for class org.apache.log4j.performance.NotLogging
 
NTEventLogAppender - class org.apache.log4j.nt.NTEventLogAppender.
Append to the NT event log system.
NTEventLogAppender() - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NTEventLogAppender(Layout) - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NTEventLogAppender(String) - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NTEventLogAppender(String, Layout) - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NTEventLogAppender(String, String) - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NTEventLogAppender(String, String, Layout) - Constructor for class org.apache.log4j.nt.NTEventLogAppender
 
NULL_ARG - Static variable in class org.apache.log4j.config.PropertyGetter
 
NULL_DATE_FORMAT - Static variable in class org.apache.log4j.helpers.DateLayout
String constant designating no time information.
NullAppender - class org.apache.log4j.performance.NullAppender.
A bogus appender which calls the format method of its layout object but does not write the result anywhere.
NullAppender() - Constructor for class org.apache.log4j.performance.NullAppender
 
NullAppender(Layout) - Constructor for class org.apache.log4j.performance.NullAppender
 
NullEnumeration - class org.apache.log4j.helpers.NullEnumeration.
An always-empty Enumerator.
numAppenders - Variable in class org.apache.log4j.config.PropertyPrinter
 
NumberCruncher - interface org.apache.log4j.examples.NumberCruncher.
NumberCruncher's factor positive integers.
NumberCruncherClient - class org.apache.log4j.examples.NumberCruncherClient.
NumberCruncherClient is a simple client for factoring integers.
NumberCruncherClient() - Constructor for class org.apache.log4j.examples.NumberCruncherClient
 
NumberCruncherServer - class org.apache.log4j.examples.NumberCruncherServer.
A simple NumberCruncher implementation that logs its progress when factoring numbers.
NumberCruncherServer() - Constructor for class org.apache.log4j.examples.NumberCruncherServer
 

O

obj - Variable in class org.apache.log4j.config.PropertySetter
 
obj - Variable in class org.apache.log4j.config.PropertyGetter
 
ObjectRenderer - interface org.apache.log4j.or.ObjectRenderer.
Implement this interface in order to render objects as strings.
OK - Static variable in class org.apache.log4j.varia.ExternallyRolledFileAppender
The string constant sent to acknowledge a roll over.
OnlyOnceErrorHandler - class org.apache.log4j.helpers.OnlyOnceErrorHandler.
The OnlyOnceErrorHandler implements log4j's default error handling policy which consists of emitting a message for the first error in an appender and ignoring all following errors.
OnlyOnceErrorHandler() - Constructor for class org.apache.log4j.helpers.OnlyOnceErrorHandler
 
OptionConverter - class org.apache.log4j.helpers.OptionConverter.
A convenience class to convert property values to specific types.
OptionHandler - interface org.apache.log4j.spi.OptionHandler.
A string based interface to configure package components.
org.apache.log4j - package org.apache.log4j
The main package of log4j.
org.apache.log4j.config - package org.apache.log4j.config
Package used in getting/setting component properties.
org.apache.log4j.examples - package org.apache.log4j.examples
Example usage of log4j including source code.
org.apache.log4j.examples.appserver - package org.apache.log4j.examples.appserver
This package extends log4j by adding extra logging attributes useful in distributed application server environments.
org.apache.log4j.helpers - package org.apache.log4j.helpers
This package is used internally.
org.apache.log4j.net - package org.apache.log4j.net
Package for remote logging.
org.apache.log4j.nt - package org.apache.log4j.nt
Package for NT event logging.
org.apache.log4j.or - package org.apache.log4j.or
ObjectRenders are resposible for rendering messages depending on their class type.
org.apache.log4j.performance - package org.apache.log4j.performance
Package to measure the performance of the different log4j components.
org.apache.log4j.spi - package org.apache.log4j.spi
Contains part of the System Programming Interface (SPI) needed to extend log4j.
org.apache.log4j.varia - package org.apache.log4j.varia
Contains various appenders, filters and other odds and ends.
org.apache.log4j.xml - package org.apache.log4j.xml
XML based components.
org.apache.log4j.xml.examples - package org.apache.log4j.xml.examples
Example usage of log4j with XML (including source code).
out - Variable in class org.apache.log4j.config.PropertyPrinter
 
overrideAsNeeded(String) - Method in class org.apache.log4j.Hierarchy
Override the shipped code flag if the override parameter is not null.

P

parent - Variable in class org.apache.log4j.Category
The parent of this category.
parse() - Method in class org.apache.log4j.helpers.PatternParser
 
parse(Element, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to configure the log4j framework by parsing a DOM tree of XML elements based on log4j.dtd.
parse(String, ParsePosition) - Method in class org.apache.log4j.helpers.AbsoluteTimeDateFormat
This method does not do anything but return null.
parse(String, ParsePosition) - Method in class org.apache.log4j.helpers.ISO8601DateFormat
This method does not do anything but return null.
parse(String, ParsePosition) - Method in class org.apache.log4j.helpers.DateTimeDateFormat
This method does not do anything but return null.
parse(String, ParsePosition) - Method in class org.apache.log4j.helpers.RelativeTimeDateFormat
This method does not do anything but return null.
parseAppender(Element) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse an appender element.
parseCategory(Element, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse an category element.
parseCatsAndRenderers(Properties, Hierarchy) - Method in class org.apache.log4j.PropertyConfigurator
Parse non-root elements, such non-root categories and renderers.
parseChildrenOfCategoryElement(Element, Category, boolean) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse the children of a category element.
parseErrorHandler(Element, Appender) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse an ErrorHandler element.
parseFilters(Element, Appender) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse a filter element.
parseLayout(Element) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse a layout element.
parsePriority(Element, Category, boolean) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse a priority element.
parseRenderer(Element, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
 
parseRoot(Element, Hierarchy) - Method in class org.apache.log4j.xml.DOMConfigurator
Used internally to parse the roor category element.
pattern - Variable in class org.apache.log4j.helpers.PatternParser
 
PatternConverter - class org.apache.log4j.helpers.PatternConverter.
PatternConverter is an abtract class that provides the formatting functionality that derived classes need.
PatternConverter() - Constructor for class org.apache.log4j.helpers.PatternConverter
 
PatternConverter(FormattingInfo) - Constructor for class org.apache.log4j.helpers.PatternConverter
 
PatternLayout - class org.apache.log4j.PatternLayout.
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.
patternLength - Variable in class org.apache.log4j.helpers.PatternParser
 
PatternParser - class org.apache.log4j.helpers.PatternParser.
Most of the work of the PatternLayout class is delegated to the PatternParser class.
PatternParser(String) - Constructor for class org.apache.log4j.helpers.PatternParser
 
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.
PORT_OPTION - Static variable in class org.apache.log4j.net.SocketAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
PORT_OPTION - Static variable in class org.apache.log4j.varia.ExternallyRolledFileAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
pos - Variable in class org.apache.log4j.helpers.DateLayout
 
print(PrintWriter) - Method in class org.apache.log4j.config.PropertyPrinter
Prints the configuration of the default log4j hierarchy as a Java properties file on the specified Writer.
printOptions(PrintWriter, Category) - Method in class org.apache.log4j.config.PropertyPrinter
 
printOptions(PrintWriter, Object, String) - Method in class org.apache.log4j.config.PropertyPrinter
 
priority - Variable in class org.apache.log4j.Category
The assigned priority of this category.
priority - Variable in class org.apache.log4j.spi.LoggingEvent
Priority of logging event.
Priority - class org.apache.log4j.Priority.
Defines the minimum set of priorities recognized by the system, that is Priority.FATAL, Priority.ERROR, Priority.WARN, Priority.INFO and Priority.DEBUG.
PRIORITY_MAX_OPTION - Static variable in class org.apache.log4j.varia.PriorityRangeFilter
See class comments
PRIORITY_MIN_OPTION - Static variable in class org.apache.log4j.varia.PriorityRangeFilter
See class comments
PRIORITY_TO_MATCH_OPTION - Static variable in class org.apache.log4j.varia.PriorityMatchFilter
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
Priority(int, String, int) - Constructor for class org.apache.log4j.Priority
Instantiate a priority object.
PriorityMatchFilter - class org.apache.log4j.varia.PriorityMatchFilter.
This is a very simple filter based on priority matching.
PriorityMatchFilter() - Constructor for class org.apache.log4j.varia.PriorityMatchFilter
 
PriorityRangeFilter - class org.apache.log4j.varia.PriorityRangeFilter.
This is a very simple filter based on priority matching, which can be used to reject messages with priorities outside a certain range.
PriorityRangeFilter() - Constructor for class org.apache.log4j.varia.PriorityRangeFilter
 
PropertyConfigurator - class org.apache.log4j.PropertyConfigurator.
Extends BasicConfigurator to provide configuration from an external file.
PropertyConfigurator() - Constructor for class org.apache.log4j.PropertyConfigurator
 
PropertyGetter - class org.apache.log4j.config.PropertyGetter.
Used for inferring configuration information for a log4j's component.
PropertyGetter.PropertyCallback - interface org.apache.log4j.config.PropertyGetter.PropertyCallback.
 
PropertyGetter(Object) - Constructor for class org.apache.log4j.config.PropertyGetter
Create a new PropertySetter for the specified Object.
PropertyPrinter - class org.apache.log4j.config.PropertyPrinter.
Prints the configuration of the log4j default hierarchy (which needs to be auto-initialized) as a propoperties file on a PrintWriter.
PropertyPrinter(PrintWriter) - Constructor for class org.apache.log4j.config.PropertyPrinter
 
PropertyPrinter(PrintWriter, boolean) - Constructor for class org.apache.log4j.config.PropertyPrinter
 
PropertySetter - class org.apache.log4j.config.PropertySetter.
General purpose Object property setter.
PropertySetter(Object) - Constructor for class org.apache.log4j.config.PropertySetter
Create a new PropertySetter for the specified Object.
PropertySetterException - exception org.apache.log4j.config.PropertySetterException.
Thrown when an error is encountered whilst attempting to set a property using the PropertySetter utility class.
PropertySetterException(String) - Constructor for class org.apache.log4j.config.PropertySetterException
 
PropertySetterException(Throwable) - Constructor for class org.apache.log4j.config.PropertySetterException
 
props - Variable in class org.apache.log4j.config.PropertySetter
 
props - Variable in class org.apache.log4j.config.PropertyGetter
 
push(String) - Static method in class org.apache.log4j.NDC
Push new diagnostic context information for the current thread.
put(Class, ObjectRenderer) - Method in class org.apache.log4j.or.RendererMap
Register an ObjectRenderer for clazz.
put(LoggingEvent) - Method in class org.apache.log4j.helpers.BoundedFIFO
Place a LoggingEvent in the buffer.

Q

QuietWriter - class org.apache.log4j.helpers.QuietWriter.
QuietWriter does not throw exceptions when things go wrong.
QuietWriter(Writer, ErrorHandler) - Constructor for class org.apache.log4j.helpers.QuietWriter
 
qw - Variable in class org.apache.log4j.WriterAppender
This is the quietWriter where we will write to.
qwIsOurs - Variable in class org.apache.log4j.FileAppender
Deprecated. FileAppender will not support streams passed by the user in the future.

R

RECONNECTION_DELAY_OPTION - Static variable in class org.apache.log4j.net.SocketAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
registry - Variable in class org.apache.log4j.PropertyConfigurator
Used internally to keep track of configured appenders.
RELATIVE_TIME_DATE_FORMAT - Static variable in class org.apache.log4j.helpers.DateLayout
String constant designating relative time.
RelativeTimeDateFormat - class org.apache.log4j.helpers.RelativeTimeDateFormat.
Formats a Date by printing the number of milliseconds elapsed since the start of the application.
RelativeTimeDateFormat() - Constructor for class org.apache.log4j.helpers.RelativeTimeDateFormat
 
REMOTE_HOST_OPTION - Static variable in class org.apache.log4j.net.SocketAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
remove() - Static method in class org.apache.log4j.NDC
Remove the diagnostic context for this thread.
removeAllAppenders() - Method in class org.apache.log4j.Category
Remove all previously added appenders from this Category instance.
removeAllAppenders() - Method in class org.apache.log4j.AsyncAppender
 
removeAllAppenders() - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Remove all previously attached appenders.
removeAllAppenders() - Method in interface org.apache.log4j.spi.AppenderAttachable
Remove all previously added appenders.
removeAppender(Appender) - Method in class org.apache.log4j.Category
Remove the appender passed as parameter form the list of appenders.
removeAppender(Appender) - Method in class org.apache.log4j.AsyncAppender
 
removeAppender(Appender) - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Remove the appender passed as parameter form the list of attached appenders.
removeAppender(Appender) - Method in interface org.apache.log4j.spi.AppenderAttachable
Remove the appender passed as parameter from 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.
removeAppender(String) - Method in class org.apache.log4j.AsyncAppender
 
removeAppender(String) - Method in class org.apache.log4j.helpers.AppenderAttachableImpl
Remove the appender with the name passed as parameter form the list of appenders.
removeAppender(String) - Method in interface org.apache.log4j.spi.AppenderAttachable
Remove the appender with the name passed as parameter from the list of appenders.
RendererMap - class org.apache.log4j.or.RendererMap.
Map class objects to an ObjectRenderer.
RendererMap() - Constructor for class org.apache.log4j.or.RendererMap
 
ReportParserError - class org.apache.log4j.xml.examples.ReportParserError.
This class is needed for validating a log4j.dtd derived XML file.
ReportParserError() - Constructor for class org.apache.log4j.xml.examples.ReportParserError
 
requiresLayout() - Method in class org.apache.log4j.WriterAppender
The WriterAppender requires a layout.
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
The AsyncAppender does not require a layout.
requiresLayout() - Method in class org.apache.log4j.net.SyslogAppender
The SyslogAppender requires a layout.
requiresLayout() - Method in class org.apache.log4j.net.SocketAppender
The SocketAppender does not use a layout.
requiresLayout() - Method in class org.apache.log4j.net.JMSAppender
 
requiresLayout() - Method in class org.apache.log4j.net.SMTPAppender
The SMTPAppender requires a layout.
requiresLayout() - Method in class org.apache.log4j.nt.NTEventLogAppender
The NTEventLogAppender requires a layout.
requiresLayout() - Method in class org.apache.log4j.performance.NullAppender
This is a bogus appender but it still uses a layout.
reset() - Method in class org.apache.log4j.WriterAppender
Clear internal references to the writer and other variables.
reset() - Method in class org.apache.log4j.FileAppender
Close any previously opened file and call the parent's reset.
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(Hierarchy) - Static method in class org.apache.log4j.BasicConfigurator
Deprecated. Use hierarchy.resetConfiguration() instead.
resize(int) - Method in class org.apache.log4j.helpers.CyclicBuffer
Resize the cyclic buffer to newSize.
resize(int) - Method in class org.apache.log4j.helpers.BoundedFIFO
Resize the buffer to a new size.
resourceBundle - Variable in class org.apache.log4j.Category
 
ROLL_OVER - Static variable in class org.apache.log4j.varia.ExternallyRolledFileAppender
The string constant sent to initiate a roll over.
Roller - class org.apache.log4j.varia.Roller.
A simple application to send roll over messages to a potentially remote ExternallyRolledFileAppender.
RollingFileAppender - class org.apache.log4j.RollingFileAppender.
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) - Constructor for class org.apache.log4j.RollingFileAppender
Instantiate a FileAppender and open the file designated by filename.
RollingFileAppender(Layout, String, boolean) - Constructor for class org.apache.log4j.RollingFileAppender
Instantiate a RollingFileAppender and open the file designated by filename.
RollingFileAppenderBeanInfo - class org.apache.log4j.RollingFileAppenderBeanInfo.
 
RollingFileAppenderBeanInfo() - Constructor for class org.apache.log4j.RollingFileAppenderBeanInfo
 
rollOver() - Method in class org.apache.log4j.RollingFileAppender
Implements the usual roll over behaviour.
RootCategory - class org.apache.log4j.spi.RootCategory.
RootCategory sits at the top of the category hierachy.
RootCategory(Priority) - Constructor for class org.apache.log4j.spi.RootCategory
The root category names itself as "root".
rootCause - Variable in class org.apache.log4j.config.PropertySetterException
 
run() - Method in class org.apache.log4j.helpers.FileWatchdog
 
run() - Method in class org.apache.log4j.net.SocketNode
 

S

s - Static variable in class org.apache.log4j.performance.NullAppender
 
selectAndConfigure(URL, Hierarchy) - Static method in class org.apache.log4j.helpers.OptionConverter
Configure log4j given a URL.
sendBuffer() - Method in class org.apache.log4j.net.SMTPAppender
Send the contents of the cyclic buffer as an e-mail message.
server - Variable in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
The application server name for this factory.
server - Variable in class org.apache.log4j.examples.appserver.AppServerCategory
The application server name for this category.
server - Variable in class org.apache.log4j.examples.appserver.AppServerLoggingEvent
Name of server from which this event originated.
SERVER_CHAR - Static variable in class org.apache.log4j.examples.appserver.AppServerPatternParser
Set to 's'.
setAcceptOnMatch(boolean) - Method in class org.apache.log4j.varia.StringMatchFilter
 
setAcceptOnMatch(boolean) - Method in class org.apache.log4j.varia.PriorityRangeFilter
Set the AcceptOnMatch option.
setAcceptOnMatch(boolean) - Method in class org.apache.log4j.varia.PriorityMatchFilter
 
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.
setBufferSize(int) - Method in class org.apache.log4j.AsyncAppender
The BufferSize option takes a non-negative integer value.
setBufferSize(int) - Method in class org.apache.log4j.net.SMTPAppender
The BufferSize option takes a positive integer representing the maximum number of logging events to collect in a cyclic buffer.
setCategoryFactory(CategoryFactory) - Method in class org.apache.log4j.Hierarchy
Set the default CategoryFactory instance.
setCategoryPrefixing(boolean) - Method in class org.apache.log4j.TTCCLayout
The CategoryPrefixing option specifies whether Category name is part of log output or not.
setComponent(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the name of the component for which the category will be logging.
setComponent(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Set the component name for this category.
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.
setCount(long) - Method in class org.apache.log4j.helpers.CountingQuietWriter
 
setDateFormat(DateFormat, TimeZone) - Method in class org.apache.log4j.helpers.DateLayout
Sets the DateFormat used to format time and date in the zone determined by timeZone.
setDateFormat(String) - Method in class org.apache.log4j.helpers.DateLayout
The value of the DateFormat option should be either an argument to the constructor of SimpleDateFormat or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601.
setDateFormat(String, TimeZone) - Method in class org.apache.log4j.helpers.DateLayout
Sets the DateFormat used to format date and time in the time zone determined by timeZone parameter.
setDatePattern(String) - Method in class org.apache.log4j.DailyRollingFileAppender
The DatePattern takes a string in the same format as expected by SimpleDateFormat.
setDelay(long) - Method in class org.apache.log4j.helpers.FileWatchdog
Set the delay to observe between each check of the file changes.
setDisableOverride(String) - Method in class org.apache.log4j.Hierarchy
Set the disable override value given a string.
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 FileAppender and also the underlying QuietWriter if any.
setErrorHandler(ErrorHandler) - Method in interface org.apache.log4j.Appender
Set the ErrorHandler for this appender.
setErrorHandler(ErrorHandler) - Method in class org.apache.log4j.helpers.QuietWriter
 
setEvaluatorClass(String) - Method in class org.apache.log4j.net.SMTPAppender
The EvaluatorClass option takes a string value representing the name of the class implementing the TriggeringEventEvaluator interface.
setFacility(String) - Method in class org.apache.log4j.net.SyslogAppender
Set the syslog facility.
setFacilityPrinting(boolean) - Method in class org.apache.log4j.net.SyslogAppender
If the FacilityPrinting option is set to true, the printed message will include the facility name of the application.
setFactory(CategoryFactory) - Static method in class org.apache.log4j.examples.appserver.AppServerCategory
Set the factory instance for creation of AppServerCategory instances. in the getInstance method.
setFile(String) - Method in class org.apache.log4j.FileAppender
The File option takes a string value which should be the name of the file to append to.
setFile(String, boolean) - Method in class org.apache.log4j.FileAppender
Sets and opens the file where the log output will go.
setFile(String, boolean) - Method in class org.apache.log4j.RollingFileAppender
 
setFrom(String) - Method in class org.apache.log4j.net.SMTPAppender
The From option takes a string value which should be a e-mail address of the sender.
setHostname(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the host name of the component on which this category is running.
setHostname(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Explicity set the hostname for this category.
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.
setInternalDebugging(boolean) - Static method in class org.apache.log4j.helpers.LogLog
Allows to enable/disable log4j internal logging.
setLayout(Layout) - Method in class org.apache.log4j.AppenderSkeleton
Set the layout for this appender.
setLayout(Layout) - Method in interface org.apache.log4j.Appender
Set the Layout for this appender.
setLocationInfo(boolean) - Method in class org.apache.log4j.HTMLLayout
The LocationInfo option takes a boolean value.
setLocationInfo(boolean) - Method in class org.apache.log4j.AsyncAppender
The LocationInfo option takes a boolean value.
setLocationInfo(boolean) - Method in class org.apache.log4j.net.SocketAppender
The LocationInfo option takes a boolean value.
setLocationInfo(boolean) - Method in class org.apache.log4j.net.SMTPAppender
The LocationInfo option takes a boolean value.
setLocationInfo(boolean) - Method in class org.apache.log4j.xml.XMLLayout
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(long) - Method in class org.apache.log4j.RollingFileAppender
Deprecated. Use RollingFileAppender.setMaximumFileSize(long) instead.
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.
setMessageBundle(ResourceBundle) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the message bundle to be used for all Category objects created by this CatgoryFactory. param bundle a bundle of messages
setMessageBundle(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the message bundle using the bundle filename.
setName(String) - Method in class org.apache.log4j.AppenderSkeleton
Set the name of this Appender.
setName(String) - Method in interface org.apache.log4j.Appender
Set the name of this appender.
setOption(String, String) - Method in class org.apache.log4j.SimpleLayout
 
setOption(String, String) - Method in class org.apache.log4j.TTCCLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.HTMLLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.PatternLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.AppenderSkeleton
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.WriterAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.FileAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.ConsoleAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.DailyRollingFileAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.RollingFileAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.AsyncAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.helpers.DateLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.helpers.OnlyOnceErrorHandler
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.net.SyslogAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.net.SocketAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.net.JMSAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.net.SMTPAppender
Deprecated. Use the setter method for the option directly, instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.nt.NTEventLogAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in interface org.apache.log4j.spi.OptionHandler
Deprecated. We now use JavaBeans style getters/setters.
setOption(String, String) - Method in class org.apache.log4j.varia.StringMatchFilter
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.varia.PriorityRangeFilter
Deprecated. We now use JavaBeans introspection to configure components.
setOption(String, String) - Method in class org.apache.log4j.varia.PriorityMatchFilter
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.varia.ExternallyRolledFileAppender
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.varia.DenyAllFilter
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.xml.XMLLayout
Deprecated. Use the setter method for the option directly instead of the generic setOption method.
setOption(String, String) - Method in class org.apache.log4j.xml.examples.XCategory
Set XCategory specific options.
setParameter(Element, PropertySetter) - Method in class org.apache.log4j.xml.DOMConfigurator
 
setPort(int) - Method in class org.apache.log4j.net.SocketAppender
The Port option takes a positive integer representing the port where the server is waiting for connections.
setPort(int) - Method in class org.apache.log4j.varia.ExternallyRolledFileAppender
The Port option is used for setting the port for listening to external roll over messages.
setPriority(int) - Method in class org.apache.log4j.helpers.SyslogQuietWriter
 
setPriority(Priority) - Method in class org.apache.log4j.Category
Set the priority of this Category.
setPriority(Priority) - Method in class org.apache.log4j.spi.RootCategory
Setting a null value to the priority of the root category may have catastrophic results.
setPriorityMax(Priority) - Method in class org.apache.log4j.varia.PriorityRangeFilter
Set the PriorityMax option.
setPriorityMin(Priority) - Method in class org.apache.log4j.varia.PriorityRangeFilter
Set the PriorityMin option.
setPriorityToMatch(String) - Method in class org.apache.log4j.varia.PriorityMatchFilter
 
setProperties(Object, Properties, String) - Static method in class org.apache.log4j.config.PropertySetter
Set the properties of an object passed as a parameter in one go.
setProperties(Properties, String) - Method in class org.apache.log4j.config.PropertySetter
Set the properites for the object that match the prefix passed as parameter.
setProperty(PropertyDescriptor, String, String) - Method in class org.apache.log4j.config.PropertySetter
Set the named property given a PropertyDescriptor.
setProperty(String, String) - Method in class org.apache.log4j.config.PropertySetter
Set a property on this PropertySetter's Object.
setQuietMode(boolean) - Static method in class org.apache.log4j.helpers.LogLog
In quite mode no LogLog generates strictly no output, not even for errors.
setQWForFiles(Writer) - Method in class org.apache.log4j.FileAppender
Sets the quiet writer being used.
setQWForFiles(Writer) - Method in class org.apache.log4j.RollingFileAppender
 
setReconnectionDelay(int) - Method in class org.apache.log4j.net.SocketAppender
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait between each failed connection attempt to the server.
setRemoteHost(String) - Method in class org.apache.log4j.net.SocketAppender
The RemoteHost option takes a string value which should be the host name of the server where a SocketNode is running.
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).
setServer(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the name of the application server process in which this category is logging.
setServer(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Set the server name for this category.
setSMTPHost(String) - Method in class org.apache.log4j.net.SMTPAppender
The SMTPHost option takes a string value which should be a the host name of the SMTP server that will send the e-mail message.
setSource(String) - Method in class org.apache.log4j.nt.NTEventLogAppender
The Source option which names the source of the event.
setStringToMatch(String) - Method in class org.apache.log4j.varia.StringMatchFilter
 
setSubject(String) - Method in class org.apache.log4j.net.SMTPAppender
The Subject option takes a string value which should be a the subject of the e-mail message.
setSyslogFacility(int) - Method in class org.apache.log4j.helpers.SyslogQuietWriter
 
setSyslogHost(String) - Method in class org.apache.log4j.net.SyslogAppender
The SyslogHost option is the name of the the syslog host where log output should go.
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 priority.
setTimeZone(String) - Method in class org.apache.log4j.helpers.DateLayout
The TimeZoneID option is a time zone ID string in the format expected by the TimeZone.getTimeZone(java.lang.String) method.
setTitle(String) - Method in class org.apache.log4j.HTMLLayout
The Title option takes a String value.
setTo(String) - Method in class org.apache.log4j.net.SMTPAppender
The To option takes a string value which should be a comma separated list of e-mail address of the recipients.
setTopicBindingName(String) - Method in class org.apache.log4j.net.JMSAppender
The TopicBindingName option takes a string value.
setTopicConnectionFactoryBindingName(String) - Method in class org.apache.log4j.net.JMSAppender
The TopicConnectionFactoryBindingName option takes a string value.
setVersion(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
Set the version string for the component.
setVersion(String) - Method in class org.apache.log4j.examples.appserver.AppServerCategory
Set the version of the component for this category.
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
Calling this method will safely close and remove all appenders in all the categories including root contained in the default hierachy.
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 category.
SimpleLayout - class org.apache.log4j.SimpleLayout.
SimpleLayout consists of the priority of the log statement, followed by " - " and then the log message itself.
SimpleLayout() - Constructor for class org.apache.log4j.SimpleLayout
 
SimpleSocketServer - class org.apache.log4j.net.SimpleSocketServer.
A simple SocketNode based server.
SimpleSocketServer() - Constructor for class org.apache.log4j.net.SimpleSocketServer
 
SMTP_HOST_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
SMTPAppender - class org.apache.log4j.net.SMTPAppender.
Send an e-mail when a specific logging event occurs, typically on errors or fatal errors.
SMTPAppender() - Constructor for class org.apache.log4j.net.SMTPAppender
The default constructor will instantiate the appender with a TriggeringEventEvaluator that will trigger on events with priority ERROR or higher.
SMTPAppender(TriggeringEventEvaluator) - Constructor for class org.apache.log4j.net.SMTPAppender
Use evaluator passed as parameter as the TriggeringEventEvaluator for this SMTPAppender.
SocketAppender - class org.apache.log4j.net.SocketAppender.
Sends LoggingEvent objects to a remote a log server, usually a SocketNode.
SocketAppender() - Constructor for class org.apache.log4j.net.SocketAppender
 
SocketAppender(InetAddress, int) - Constructor for class org.apache.log4j.net.SocketAppender
Connects to remote server at address and port.
SocketAppender(String, int) - Constructor for class org.apache.log4j.net.SocketAppender
Connects to remote server at host and port.
SocketNode - class org.apache.log4j.net.SocketNode.
Read LoggingEvent objects sent from a remote client using Sockets (TCP).
SocketNode(Socket, Hierarchy) - Constructor for class org.apache.log4j.net.SocketNode
 
SocketServer - class org.apache.log4j.net.SocketServer.
A SocketNode based server that uses a different hierarchy for each client.
SocketServer(File) - Constructor for class org.apache.log4j.net.SocketServer
 
Sort - class org.apache.log4j.examples.Sort.
Example code for log4j to viewed in conjunction with the SortAlgo class.
Sort() - Constructor for class org.apache.log4j.examples.Sort
 
SortAlgo - class org.apache.log4j.examples.SortAlgo.
Example code for log4j to viewed in conjunction with the Sort class.
SOURCE_OPTION - Static variable in class org.apache.log4j.nt.NTEventLogAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
spacePad(StringBuffer, int) - Method in class org.apache.log4j.helpers.PatternConverter
Fast space padding method.
startTime - Variable in class org.apache.log4j.helpers.RelativeTimeDateFormat
 
STRING_TO_MATCH_OPTION - Static variable in class org.apache.log4j.varia.StringMatchFilter
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
StringMatchFilter - class org.apache.log4j.varia.StringMatchFilter.
This is a very simple filter based on string matching.
StringMatchFilter() - Constructor for class org.apache.log4j.varia.StringMatchFilter
 
subAppend(LoggingEvent) - Method in class org.apache.log4j.WriterAppender
Actual writing occurs here.
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.
SUBJECT_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
subst(String) - Method in class org.apache.log4j.xml.DOMConfigurator
 
substVars(String, Properties) - Static method in class org.apache.log4j.helpers.OptionConverter
Perform variable substitution in string val from the values of keys found in the system propeties.
SUFFIX_OPTION - Static variable in class org.apache.log4j.xml.examples.XCategory
 
SYSLOG_HOST_OI - Static variable in class org.apache.log4j.net.SyslogAppender
 
SYSLOG_HOST_OPTION - Static variable in class org.apache.log4j.net.SyslogAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
SyslogAppender - class org.apache.log4j.net.SyslogAppender.
Use SyslogAppender to send log messages to a remote syslog daemon.
SyslogAppender() - Constructor for class org.apache.log4j.net.SyslogAppender
 
SyslogAppender(Layout, int) - Constructor for class org.apache.log4j.net.SyslogAppender
 
SyslogAppender(Layout, String, int) - Constructor for class org.apache.log4j.net.SyslogAppender
 
SyslogQuietWriter - class org.apache.log4j.helpers.SyslogQuietWriter.
SyslogQuietWriter extends QuietWriter by prepending the syslog priority code before each printed String.
SyslogQuietWriter(Writer, int, ErrorHandler) - Constructor for class org.apache.log4j.helpers.SyslogQuietWriter
 
SyslogWriter - class org.apache.log4j.helpers.SyslogWriter.
SyslogWriter is a wrapper around the java.net.DatagramSocket class so that it behaves like a java.io.Writer.
SyslogWriter(String) - Constructor for class org.apache.log4j.helpers.SyslogWriter
 
SYSTEM_ERR - Static variable in class org.apache.log4j.ConsoleAppender
 
SYSTEM_OUT - Static variable in class org.apache.log4j.ConsoleAppender
 
SystemTime - class org.apache.log4j.performance.SystemTime.
Measures the time required to make a System.currentTimeMillis() and Thread.currentThread().getName() calls.
SystemTime() - Constructor for class org.apache.log4j.performance.SystemTime
 

T

t - Variable in class org.apache.log4j.performance.NullAppender
 
tailFilter - Variable in class org.apache.log4j.AppenderSkeleton
The last filter in the filter chain.
target - Variable in class org.apache.log4j.ConsoleAppender
 
TARGET_OPTION - Static variable in class org.apache.log4j.ConsoleAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
THREAD_PRINTING_OPTION - Static variable in class org.apache.log4j.TTCCLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
ThreadGroupRenderer - class org.apache.log4j.or.ThreadGroupRenderer.
Render ThreadGroup objects in a format similar to the information output by the ThreadGroup.list() method.
ThreadGroupRenderer() - Constructor for class org.apache.log4j.or.ThreadGroupRenderer
 
threshold - Variable in class org.apache.log4j.AppenderSkeleton
There is no priority threshold filtering by default.
THRESHOLD_OPTION - Static variable in class org.apache.log4j.AppenderSkeleton
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
ThrowableInformation - class org.apache.log4j.spi.ThrowableInformation.
 
ThrowableInformation(Throwable) - Constructor for class org.apache.log4j.spi.ThrowableInformation
 
timeStamp - Variable in class org.apache.log4j.spi.LoggingEvent
The number of milliseconds elapsed from 1/1/1970 until logging event was created.
TIMEZONE_OPTION - Static variable in class org.apache.log4j.helpers.DateLayout
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
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.
TO_OPTION - Static variable in class org.apache.log4j.net.SMTPAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant will be removed in the near term.
toBoolean(String, boolean) - Static method in class org.apache.log4j.helpers.OptionConverter
If value is "true", then true is returned.
toFileSize(String, long) - Static method in class org.apache.log4j.helpers.OptionConverter
 
toInt() - Method in class org.apache.log4j.Priority
Returns the integer representation of this priority.
toInt(String, int) - Static method in class org.apache.log4j.helpers.OptionConverter
 
TOPIC_BINDING_NAME_OPTION - Static variable in class org.apache.log4j.net.JMSAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
TOPIC_CONNECTION_FACTORY_BINDING_NAME_OPTION - Static variable in class org.apache.log4j.net.JMSAppender
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
toPriority(int) - Static method in class org.apache.log4j.Priority
Convert an integer passed as argument to a priority.
toPriority(int) - Static method in class org.apache.log4j.xml.examples.XPriority
 
toPriority(int, Priority) - Static method in class org.apache.log4j.Priority
Convert an integer passed as argument to a priority.
toPriority(String) - Static method in class org.apache.log4j.Priority
Convert the string passed as argument to a priority.
toPriority(String, Priority) - Static method in class org.apache.log4j.Priority
Convert the string passed as argument to a priority.
toPriority(String, Priority) - Static method in class org.apache.log4j.helpers.OptionConverter
Converts a standard or custom priority level to a Priority object.
toPriority(String, Priority) - Static method in class org.apache.log4j.xml.examples.XPriority
 
toString() - Method in class org.apache.log4j.Priority
Returns the string representation of this priority.
TRACE - Static variable in class org.apache.log4j.xml.examples.XPriority
 
trace(String) - Method in class org.apache.log4j.examples.MyCategory
 
trace(String) - Method in class org.apache.log4j.xml.examples.XCategory
We introduce a new printing method that takes the TRACE priority.
trace(String, Throwable) - Method in class org.apache.log4j.xml.examples.XCategory
We introduce a new printing method that takes the TRACE priority.
TriggeringEventEvaluator - interface org.apache.log4j.spi.TriggeringEventEvaluator.
Implementions of this interface allow certain appenders to decide when to perform an appender specific action.
Trivial - class org.apache.log4j.examples.Trivial.
View the source code of this a trivial usage example.
Trivial() - Constructor for class org.apache.log4j.examples.Trivial
 
TTCC_CONVERSION_PATTERN - Static variable in class org.apache.log4j.PatternLayout
A conversion pattern equivalent to the TTCCCLayout.
TTCCLayout - class org.apache.log4j.TTCCLayout.
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.

V

version - Variable in class org.apache.log4j.examples.appserver.AppServerCategoryFactory
An identifier for this particular version/release.
version - Variable in class org.apache.log4j.examples.appserver.AppServerCategory
An identifier for this particular version/release.
version - Variable in class org.apache.log4j.examples.appserver.AppServerLoggingEvent
Version name of server/component.
VERSION_CHAR - Static variable in class org.apache.log4j.examples.appserver.AppServerPatternParser
Set to 'v'.

W

WARN - Static variable in class org.apache.log4j.Priority
The WARN priority designates potentially harmful situations.
WARN_INT - Static variable in class org.apache.log4j.Priority
 
warn(Object) - Method in class org.apache.log4j.Category
Log a message object with the WARN priority.
warn(Object, Throwable) - Method in class org.apache.log4j.Category
Log a message with the WARN priority including the stack trace of the Throwable t passed as parameter.
warn(String) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal warning statements.
warn(String, Throwable) - Static method in class org.apache.log4j.helpers.LogLog
This method is used to output log4j internal warnings.
warning(SAXParseException) - Method in class org.apache.log4j.xml.examples.ReportParserError
 
wasEmpty() - Method in class org.apache.log4j.helpers.BoundedFIFO
Returns true if there is just one element in the buffer.
wasFull() - Method in class org.apache.log4j.helpers.BoundedFIFO
Returns true if the number of elements in the buffer plus 1 equals the maximum buffer size, returns false otherwise.
WRITE_FAILURE - Static variable in interface org.apache.log4j.spi.ErrorCode
 
write(char[]) - Method in class org.apache.log4j.performance.NOPWriter
 
write(char[], int, int) - Method in class org.apache.log4j.helpers.SyslogWriter
 
write(char[], int, int) - Method in class org.apache.log4j.performance.NOPWriter
 
write(int) - Method in class org.apache.log4j.performance.NOPWriter
 
write(String) - Method in class org.apache.log4j.helpers.QuietWriter
 
write(String) - Method in class org.apache.log4j.helpers.CountingQuietWriter
 
write(String) - Method in class org.apache.log4j.helpers.SyslogWriter
 
write(String) - Method in class org.apache.log4j.helpers.SyslogQuietWriter
 
write(String) - Method in class org.apache.log4j.performance.NOPWriter
 
write(String, int, int) - Method in class org.apache.log4j.performance.NOPWriter
 
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 org.apache.log4j.WriterAppender.
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.

X

XCategory - class org.apache.log4j.xml.examples.XCategory.
A simple example showing Category sub-classing.
XCategory.XFactory - class org.apache.log4j.xml.examples.XCategory.XFactory.
 
XCategory.XFactory() - Constructor for class org.apache.log4j.xml.examples.XCategory.XFactory
 
XCategory(String) - Constructor for class org.apache.log4j.xml.examples.XCategory
Just calls the parent constuctor.
XMLLayout - class org.apache.log4j.xml.XMLLayout.
The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd.
XMLLayout() - Constructor for class org.apache.log4j.xml.XMLLayout
 
XMLSample - class org.apache.log4j.xml.examples.XMLSample.
This example code shows how to read an XML based configuration file using a DOM parser.
XMLSample() - Constructor for class org.apache.log4j.xml.examples.XMLSample
 
XPriority - class org.apache.log4j.xml.examples.XPriority.
This class introduces a new priority level called TRACE.
XPriority(int, String, int) - Constructor for class org.apache.log4j.xml.examples.XPriority
 
XTest - class org.apache.log4j.xml.examples.XTest.
A simple example showing Category sub-classing.
XTest() - Constructor for class org.apache.log4j.xml.examples.XTest
 

A B C D E F G H I J L M N O P Q R S T V W X
Log4j 1.1.3

Please notify me about new log4j releases.