Formats a Date
in the format "HH:mm:ss,SSS" for example,
"15:49:37,459".
The log event must be logged immediately without consulting with
the remaining filters, if any, in the chain.
Derived appenders should override this method if option structure
requires it.
Prepares the appender for use.
Start listening on the port specified by a preceding call to
setPort(int)
.
If the value of File is not null
, then setFile
is called with the values of File and
Append properties.
Usually filters options become active when set.
Options are activated and become effective only after calling
this method.
There are no options to acticate.
Activate the options that were previously set with calls to option
setters.
Does not do anything as options become effective
Activate the specified options, such as the smtp host, the
recipient, from, etc.
Connect to the specified RemoteHost and Port.
Set up the socket server on the specified port.
This method returns immediately as options are activated when they
are set.
all of the options have been set, create the socket handler and
wait for connections.
Add an event
as the last event in the buffer.
Add newAppender
to the list of appenders of this
Category instance.
Add a filter to the end of the filter list.
Add a filter to end of the filter list.
Additivity is set to true by default, that is children inherit
the appenders of their ancestors by default.
Add an object renderer for a specific class.
Add a renderer to a hierarchy passed as parameter.
ALL - static field in class org.apache.log4j.
Level The ALL
has the lowest possible rank and is intended to
turn on all logging.
Subclasses of AppenderSkeleton
should implement this
method to perform actual logging.
Subclasses of AppenderSkeleton
should implement this
method to perform actual logging.
Adds the event to the buffer.
Appends a LoggingEvent
record to the
LF5Appender
.
Subclasses of AppenderSkeleton
should implement this
method to perform actual logging.
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.
Subclasses of AppenderSkeleton
should implement this
method to perform actual logging.
Append an event to all of current connections.
Implement this interface for your own strategies for outputting log
statements.
Interface for attaching appenders to objects.
AppenderFinalizer
has a single method that will finalize
resources associated with a LogBrokerMonitor
in the event
that the LF5Appender
class is destroyed, and the class loader
is garbage collected.
Abstract superclass of the other appenders in the package.
Ensures that embeded CDEnd strings (]]>) are handled properly
within message, NDC and throwable tag text.
Call the doAppend
method on all attached appenders.
If
assertion
parameter is
false
, then
logs
msg
as an
error
statement.
The AsyncAppender lets users log events asynchronously.
Render org.xml.sax.Attributes
objects.
Call the appenders in the hierrachy starting at
this
.
This class has been deprecated and
replaced by the Logger
subclass.
This constructor created a new Category
instance and
sets its name.
The category (logger) name.
This method determines if there is a sense in attempting to append.
This method determines if there is a sense in attempting to append.
Drop the connection to the remote host and release the underlying
connector thread if it has been created
Release the underlying ServerMonitor thread, and drop the connections
to all connected remote servers.
This call will clear all logger definitions from the internal
hashtable.
clear() - static method in class org.apache.log4j.
NDC Clear any nested diagnostic information if any.
Clear the list of filters by removing all the filters in it.
Clone the diagnostic context for the current thread.
Release any resources allocated within the appender such as file
handles, network connections, etc.
Close this AsyncAppender
by interrupting the
dispatcher thread which will process all pending events before
exiting.
Closes the appender, flushing the buffer first then closing the default
connection if it is open.
This method is an empty implementation of the close() method inherited
from the org.apache.log4j.Appender
interface.
Release any resources allocated within the appender such as file
handles, network connections, etc.
Release any resources held by this SyslogAppender.
Close this appender instance.
Override this to return the connection to a pool, or to clean up the
resource.
Closes the previously opened file.
Defining this value makes log4j components print log4j-internal
debug statements to System.out
.
Implemented by classes capable of configuring log4j using a URL.
This method configures the LF5Appender
using a
default configuration file.
Configure log4j using a configuration
element as
defined in the log4j.dtd.
Read configuration options from url configURL
.
Add appender
to the root category.
Read configuration options from properties
.
Read the configuration file configFilename
if it
exists.
Read the configuration file configFilename
if it
exists.
Connection used by default.
ConsoleAppender appends log events to System.out
or
System.err
using a layout specified by the user.
Constructs an unconfigured appender.
Creates a configured appender.
Creates a configured appender.
Derived pattern converters must override this method in order to
convert conversion specifiers in the correct way.
Convert val
a String parameter to an object of a
given type.
Counts the number of bytes written.
Returns PatternParser used to parse the conversion string.
Returns an OutputStreamWriter when passed an OutputStream.
CyclicBuffer is used by other appenders to hold
LoggingEvents
for immediate or differed display.
Instantiate a new CyclicBuffer of at most maxSize
events.
DailyRollingFileAppender extends
FileAppender
so that the
underlying file is rolled over at a user chosen frequency.
The default constructor does nothing.
Instantiate a DailyRollingFileAppender
and open the
file designated by filename
.
User to use for default connection handling
URL of the DB for default connection handling
User to connect as for default connection handling
This abstract layout takes care of all the date related options and
formatting work.
Formats a Date
in the format "dd MMM YYYY HH:mm:ss,SSS" for example,
"06 Nov 1994 15:49:37,459".
DEBUG - static field in class org.apache.log4j.
Level The DEBUG
Level designates fine-grained
informational events that are most useful to debug an
application.
Log a message object with the
DEBUG
level.
Log a message object with the DEBUG
level including
the stack trace of the Throwable
t
passed as
parameter.
This method is used to output log4j internal debug
statements.
This method is used to output log4j internal debug
statements.
Defining this value makes log4j print log4j-internal debug
statements to System.out
.
If the decision is DENY
, then the event will be
dropped.
Return the decision of this filter.
Return the decision of this filter.
The default buffer size is set to 128 events.
Default pattern string for log output.
The default delay between every file modification check, set to 60
seconds.
The DefaultLF5Configurator
provides a default
configuration for the LF5Appender
.
The delay to observe between every check.
DENY - static field 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.
This filter drops all logging events.
Log in Appender
specific way.
This method performs threshold checks and invokes filters before
delegating actual logging to the subclasses specific
append(LoggingEvent)
method.
Configure by taking in an DOM element.
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
Read configuration options from url configURL
.
Read configuration options from properties
.
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
Read configuration from a file.
Interpret a resource pointed by a URL and set up log4j accordingly.
This is a dummy method that will throw an
IllegalStateException
if used.
Interpret a resource pointed by a URL and set up log4j accordingly.
Interpret a resource pointed by a URL and set up log4j accordingly.
Use this class to initialize the log4j environment using a DOM tree.
Render a org.xml.sax.Attributes
.
Render a javax.jms.Message
.
Render the object passed as parameter as a String.
Render a ThreadGroup
object similar to the way that the
ThreadGroup.list
method output information.
The encoding to use when opening an InputStream.
Returns true if the level supplied is encompassed by this level.
Two priorities are equal if their level fields are equal.
The equals method compares two LF5Appenders and determines whether
they are equal.
ERROR - static field in class org.apache.log4j.
Level The ERROR
level designates error events that
might still allow the application to continue running.
Log a message object with the
ERROR
Level.
Log a message object with the ERROR
level including
the stack trace of the Throwable
t
passed as
parameter.
This method is normally used to just print the error message
passed as a parameter.
Print a the error message passed as parameter on
System.err
.
This method is used to output log4j internal error
statements.
Print a the error message passed as parameter on
System.err
.
Equivalent to the error(String, Exception, int,
LoggingEvent event)
with the the event parameteter set to
null
.
Prints the message and the stack trace of the exception on
System.err
.
Prints the message and the stack trace of the exception on
System.err
.
This method is invoked to handle the error.
Prints the message and the stack trace of the exception on
System.err
.
Prints the message and the stack trace of the exception on
System.err
.
This method is used to output log4j internal error
statements.
This interface defines commonly encoutered error codes.
It is assumed and enforced that errorHandler is never null.
Appenders may delegate their error handling to
ErrorHandlers
.
This method takes a string which may contain HTML tags (ie,
<b>, <table>, etc) and replaces any '<' and '>'
characters with respective predefined entity references.
Override this to provide an alertnate method of getting
connections (such as caching).
If the named category exists (in the default hierarchy) then it
returns a reference to the category, otherwise it returns
null
.
Check if the named logger exists in the hierarchy.
This appender listens on a socket on the port specified by the
Port property for a "RollOver" message.
The default constructor does nothing but calls its super-class
constructor.
The option is expected to be in decimal and positive.
The FallbackErrorHandler
implements the ErrorHandler
interface such that a secondary appender may be specified.
FATAL - static field in class org.apache.log4j.
Level The FATAL
level designates very severe error
events that will presumably lead the application to abort.
Log a message object with the
FATAL
Level.
Log a message object with the FATAL
level including
the stack trace of the Throwable
t
passed as
parameter.
Controls file truncatation.
FileAppender appends log events to a file.
The default constructor does not do anything.
Instantiate a FileAppender and open the file designated by
filename
.
Instantiate a FileAppender and open the file designated by
filename
.
Instantiate a FileAppender
and open the file
designated by filename
.
The name of the log file.
The name of the file to observe for changes.
Check every now and then that a certain file has not changed.
Users should extend this class to implement customized logging
event filtering.
Finalize this appender by calling the derived class'
close
method.
closes the appender before disposal
make sure we close all network connections when this handler is destroyed.
Find the appropriate renderer for the class type of the
o
parameter.
Find the value corresponding to key
in
props
.
Used internally to parse appenders by IDREF name.
Used internally to parse appenders by IDREF element.
loops through the buffer of LoggingEvents, gets a
sql string from getLogStatement() and sends it to execute().
This method creates a new logging event and logs the event
without further checks.
Appends to sbuf
the time in the format
"HH:mm:ss,SSS" for example, "15:49:37,459"
Appends to sbuf
the date in the format "dd MMM YYYY
HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
Appends a date in the format "YYYY-mm-dd HH:mm:ss,SSS"
to sbuf
.
Appends to sbuf
the number of milliseconds elapsed
since the start of the application.
Implement this method to create your own layout format.
Produces a formatted string as specified by the conversion pattern.
Returns the log statement in a format consisting of the
level
, followed by " - " and then the
message
.
In addition to the level of the statement and message, the
returned byte array includes time, thread, category and
NDC
information.
A template method for formatting in a converter specific way.
FormattingInfo instances contain the information obtained when parsing
formatting modifiers in conversion modifiers.
Fully qualified name of the calling category class.
All available caller information, in the format
fully.qualified.classname.of.caller.methodName(Filename.java:line)
Get the first element in the buffer.
Get the oldest (first) element in the buffer.
get() - static method in class org.apache.log4j.
NDC Search the parents of clazz
for a renderer.
Get the ith oldest event currently in the buffer.
Syntactic sugar method that calls
get(Class)
with the
class of the object parameter.
Get the context identified by the key
parameter.
Get the value of the AcceptOnMatch
option.
Get the additivity flag for this Category instance.
Get all previously added appenders as an Enumeration.
Get all attached appenders as an Enumeration.
Get all previously added appenders as an Enumeration.
Get the appenders contained in this category as an Enumeration
.
Return all possible priorities as an array of Level objects in
descending order.
Returns the value of the Append option.
Look for an attached appender named as name
.
Look for the appender named as name
.
Enables the to get the values of several attributes of the Dynamic MBean.
Get the value of the BufferedIO option.
Returns the current value of the BufferSize option.
Get the size of the IO buffer.
Returns value of the BufferSize option.
Get the category asscociated with this LogRecord.
Returns value of the CategoryPrefixing option.
Return the assigned level value without walking the category
hierarchy.
Return the assigned level value without walking the logger
hierarchy.
Return the fully qualified class name of the caller making the
logging request.
Override this to link with your connection pooling system.
Returns the content type output by this layout, i.e "text/html".
Returns the content type output by this layout.
Get the current thread's MDC as a hashtable.
Returns value of the ContextPrinting option.
Returns the value of the ConversionPattern option.
Returns all the currently defined categories in the default
hierarchy as an
Enumeration
.
Returns all the currently defined categories in this hierarchy as
an
Enumeration
.
Returns value of the DateFormat option.
Returns the value of the DatePattern option.
Return the default Hierarchy instance.
Get the current nesting depth of this diagnostic context.
Starting from this category, search the category hierarchy for a
non-null level and return it.
Returns value of the EvaluatorClass option.
Returns the value of the Facility option.
Returns the integer value corresponding to the named syslog
facility, or -1 if it couldn't be recognized.
Returns the value of the FacilityPrinting option.
Returns the specified syslog facility as a lower-case String,
e.g.
Returns the value of the File option.
Return the file name of the caller.
Return the first filter in the filter chain for this
Appender.
Gets whether the appender honors reassignments of System.out
or System.err made after configuration.
Returns the appropriate HTML footers.
Returns the footer for the layout format.
Returns value of the From option.
Returns appropriate HTML headers.
Returns the header for the layout format.
Return the the
Hierarchy
where this
Category
instance is attached.
Returns value of the ImmediateFlush option.
Returns the value of the InitialContextFactoryName option.
Whenever you can, use this method to retreive an instance instead
of instantiating a new one with new
.
Return the Label of the LogLevel.
Returns this appenders layout.
Returns the layout of this appender.
Returns the assigned
Level
, if any, for this Category.
Return the level of this event.
Get the level of this LogRecord.
Get the value of the LevelMax
option.
Get the value of the LevelMin
option.
Returns the line number of the caller.
Get the location in code where this LogRecord originated.
Returns the current value of the LocationInfo option.
Returns the current value of the LocationInfo option.
Returns value of the LocationInfo property which
determines whether location (stack) info is sent to the remote
subscriber.
Returns value of the LocationInfo option.
Returns value of the LocationInfo option.
Returns value of the LocationInfo option.
Returns the current value of the LocationInfo option.
Set the location information for this logging event.
Shorthand for getLogger(clazz.getName())
.
Retrieve the appropriate
Logger
instance.
Return a new logger instance named as the first parameter using
the default factory.
Retrieve a logger named according to the value of the
name
parameter.
Retrieve the appropriate
Logger
instance.
Return a new logger instance named as the first parameter using
factory
.
Retrieve the appropriate
Logger
instance.
Return the name of the logger.
By default getLogStatement sends the event to the required Layout object.
Returns the value of the MaxBackupIndex option.
Get the maximum size that the output file is allowed to reach
before being rolled over to backup files.
Get the maximum size of the buffer.
Returns the the context corresponding to the key
parameter.
Obtain a copy of this thread's MDC prior to serialization or
asynchronous logging.
Return the message for this logging event.
Get the message asscociated with this LogRecord.
Returns descriptive text on the cause of this exception.
Returns the method name of the caller.
Get the event time of this record in milliseconds from 1970.
Get the name of this appender.
Returns the name of this FileAppender.
Return the category name.
This method returns the NDC for this event.
Get the NDC (nested diagnostic context) for this record.
Return the pointer to the next filter;
Returns null
as there are no options.
Returns the parent of this category.
Returns value of the Port option.
Returns value of the Port option.
Returns value of the Port option.
Returns value of the ReconnectionDelay option.
Returns value of the RemoteHost option.
Get the renderer map for this hierarchy.
This method will search for resource
in different
places.
Get a resource by delegating to getResource(String).
Return the inherited ResourceBundle
for this
category.
Returns the string resource coresponding to key
in
this category's inherited resource bundle.
Get the root of this hierarchy.
Return the root logger for the current logger repository.
Retrieve the appropriate root logger.
Get the sequence number associated with this LogRecord.
Returns value of the SMTPHost option.
Returns pre-formated statement eg: insert into LogTable (msg) values ("%m")
Returns the time when the application started, in milliseconds
elapsed since 01.01.1970.
Returns value of the Subject option.
Return the syslog equivalent of this priority as an integer.
Returns the value of the SyslogHost option.
Very similar to System.getProperty
except
that the SecurityException
is hidden.
Returns the current value of the Target property.
Get the thread description asscociated with this LogRecord.
Returns value of the ThreadPrinting option.
Returns this appenders threshold level.
Returns a
Level
representation of the
enable
state.
Get the repository-wide threshold.
Returns the throwable information contained within this
event.
Return this event's throwable's string[] representaion.
Get the Throwable associated with this LogRecord.
Get the stack trace in a String-based format for the associated Throwable
of this LogRecord.
Returns value of the TimeZone option.
Returns the current value of the Title option.
Returns value of the To option.
Returns the value of the TopicBindingName option.
Returns the TopicConnection used for this appender.
Returns the value of the TopicConnectionFactoryBindingName option.
Returns the TopicPublisher used for this appender.
Returns the TopicSession used for this appender.
The HTML layout handles the throwable contained in logging
events.
If the layout handles the throwable object contained within
LoggingEvent
, then the layout should return
false
.
The PatternLayout does not handle the throwable contained within
LoggingEvents
.
The SimpleLayout does not handle the throwable contained within
LoggingEvents
.
The TTCCLayout does not handle the throwable contained within
LoggingEvents
.
The XMLLayout prints and does not ignore exceptions.
Immediate flush means that the underlying writer or output stream
will be flushed at the end of each append operation.
INFO - static field in class org.apache.log4j.
Level The INFO
level designates informational messages
that highlight the progress of the application at coarse-grained
level.
Log a message object with the
INFO
Level.
Log a message object with the INFO
level including
the stack trace of the Throwable
t
passed as
parameter.
Inherit the diagnostic context of another thread.
Special level value signifying inherited behaviour.
Instantiate an object given a class name.
Uses JavaBeans Introspector
to computer setters of object to be
configured.
Check whether the message level is below the appender's
threshold.
Returns true
if the specified appender is in list of
attached attached, false
otherwise.
Returns true
if the specified appender is in the
list of attached appenders, false
otherwise.
Is the appender passed as parameter attached to this category?
Is the appender passed as parameter attached to this category?
Check whether this category is enabled for the DEBUG
Level.
This method will return true
if this repository is
disabled for level
object passed as parameter and
false
otherwise.
Returns whether this repository is disabled for a given
level.
Check whether this category is enabled for a given
Level
passed as parameter.
Return true
if the buffer is full, that is, whether
the number of elements in the buffer equals the buffer size.
Returns true if the specified appender name is considered to have
been generated, that is, if it is of the form A[0-9]+.
Returns true
if this level has a higher or equal
level than the level passed as argument, false
otherwise.
Check whether this category is enabled for the info Level.
Are we running under JDK 1.x?
Formats a Date
in the format "YYYY-mm-dd HH:mm:ss,SSS" for example
"1999-11-27 15:49:37,459".
Determines which Priority
levels will
be displayed in colored font when the LogMonitorAppender
renders this log message.
Check whether this category is enabled for the TRACE Level.
Is this the triggering event?
Log a localized and parameterized message.
The layout variable does not need to be set if the appender
implementation has its own layout.
Extend this abstract class to create your own log layout format.
Get the number of elements in the buffer.
Get the number of elements in the buffer.
The assigned level of this category.
Defines the minimum set of levels recognized by the system, that is
OFF
, FATAL
, ERROR
,
WARN
, INFO
DEBUG
and
ALL
.
Instantiate a Level object.
This is a very simple filter based on level matching.
This is a very simple filter based on level matching, which can be
used to reject messages with priorities outside a certain range.
LF5Appender
logs events to a swing based logging
console.
Constructs a LF5Appender
using the default instance of
the LogBrokerMonitor
.
Constructs a LF5Appender
using an instance of
a
LogBrokerMonitor
supplied by the user.
Compares the performance of looping through a list versus a Vector.
If running under JDK 1.2 load the specified class using the
Thread
contextClassLoader
if that
fails try Class.forname.
Load resources (or images) from various sources.
A string constant used in naming the option for setting the the
location information flag.
The internal representation of caller location information.
Instantiate location information based on a Throwable.
This generic form is intended to be used by wrappers.
This generic form is intended to be used by wrappers.
This is the most generic printing method.
An EntityResolver
specifically designed to return
log4j.dtd
which is embedded within the log4j jar
file.
A Log4JLogRecord
encapsulates
the details of your log4j LoggingEvent
in a format usable
by the LogBrokerMonitor
.
Constructs an instance of a Log4JLogRecord
.
security/authorization messages
security/authorization messages (private)
messages generated internally by syslogd
Random user-level messages
This is the central class in the log4j package.
Implement this interface to create new instances of Logger or
a sub-class of Logger.
A LoggerRepository
is used to create and retrieve
Loggers
.
The internal representation of logging events.
Instantiate a LoggingEvent from the supplied parameters.
Instantiate a LoggingEvent from the supplied parameters.
The LogLevel class defines a set of standard logging levels.
Thrown to indicate that the client has attempted to convert a string
to one the LogLevel types, but the string does not have the appropriate
format.
This class used to output log statements from within the log4j package.
An interface for classes which filters LogRecords.
The parent of this category.
Used internally to configure the log4j framework by parsing a DOM
tree of XML elements based on
log4j.dtd.
This method does not do anything but return null
.
This method does not do anything but return null
.
This method does not do anything but return null
.
This method does not do anything but return null
.
Used internally to parse an appender element.
Used internally to parse an category element.
Used internally to parse the category factory element.
Parse non-root elements, such non-root categories and renderers.
Used internally to parse the children of a category element.
Used internally to parse a filter element.
Used internally to parse a layout element.
Used internally to parse a level element.
Used internally to parse the roor category element.
An implementation of LogRecordFilter which always returns true.
PatternConverter is an abtract class that provides the
formatting functionality that derived classes need.
A flexible layout configurable with pattern string.
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN.
Constructs a PatternLayout using the supplied conversion pattern.
Most of the work of the
PatternLayout
class
is delegated to the PatternParser class.
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.
name of property for port name *
Prints the configuration of the default log4j hierarchy as a Java
properties file on the specified Writer.
Refrain from using this class directly, use
the Level
class instead.
Default constructor for deserialization.
Instantiate a level object.
Allows the configuration of log4j from an external file.
Used for inferring configuration information for a log4j's component.
Create a new PropertyGetter for the specified Object.
Prints the configuration of the log4j default hierarchy
(which needs to be auto-initialized) as a propoperties file
on a PrintWriter
.
General purpose Object property setter.
Create a new PropertySetter for the specified Object.
Thrown when an error is encountered whilst attempting to set a property
using the
PropertySetter
utility class.
Push new diagnostic context information for the current thread.
Put a context value (the o
parameter) as identified
with the key
parameter into the current thread's
context map.
Registers a used defined LogLevel.
Used internally to keep track of configured appenders.
String constant designating relative time.
Formats a Date
by printing the number of milliseconds
elapsed since the start of the application.
Remove the diagnostic context for this thread.
Remove the the context identified by the key
parameter.
Remove all previously added appenders.
Remove and close all previously attached appenders.
Remove all previously added appenders.
Remove all previously added appenders from this Category
instance.
Remove the appender passed as parameter from the list of appenders.
Remove the appender passed as parameter form the list of attached
appenders.
Remove the appender passed as parameter from the list of appenders.
Remove the appender passed as parameter form the list of appenders.
Remove the appender with the name passed as parameter from the
list of appenders.
Remove the appender with the name passed as parameter form the
list of appenders.
Remove the appender with the name passed as parameter from the
list of appenders.
Remove the appender with the name passed as parameter form the
list of appenders.
Helper object for clearing out the buffer
This class is needed for validating a log4j.dtd derived XML file.
The
LogManager
uses one (and only one)
RepositorySelector
implementation to select the
LoggerRepository
for a particular application context.
Configurators call this method to determine if the appender
requires a layout.
The AsyncAppender
does not require a layout.
JDBCAppender requires a layout.
The JMSAppender sends serialized events and consequently does not
require a layout.
Returns a value that indicates whether this appender requires a
Layout
.
The NTEventLogAppender
requires a layout.
This is a bogus appender but it still uses a layout.
NullAppenders do not need a layout.
The
SMTPAppender
requires a
layout
.
The SocketAppender does not use a layout.
The SocketHubAppender does not use a layout.
The SyslogAppender requires a layout.
This appender requires a layout to format the text to the
attached client(s).
The WriterAppender requires a layout.
Close any previously opened file and call the parent's
reset
.
Clear internal references to the writer and other variables.
Reset the default hierarchy to its defaut.
Reset all values contained in this hierarchy instance to their
default.
Resets that sequence number to 0.
Resize the buffer to a new size.
Resize the cyclic buffer to newSize
.
The string constant sent to initiate a roll over.
RollingFileAppender extends FileAppender to backup the log files when
they reach a certain size.
The default constructor simply calls its parents constructor
.
Instantiate a FileAppender and open the file designated by
filename
.
Instantiate a RollingFileAppender and open the file designated by
filename
.
The root category names itself as "root".
RootLogger sits at the top of the logger hierachy.
The root logger names itself as "root".
Continually accepts client connections.
s - static field in class org.apache.log4j.performance.
NullAppender Configure log4j given a URL.
sends a message to each of the clients in telnet-friendly output.
Send the contents of the cyclic buffer as an e-mail message.
Set the AcceptOnMatch
option.
Set the additivity flag for this Category instance.
The Append option takes a boolean value.
Set the appender for which errors are handled.
The appender to which this error handler is attached.
Sets the values of several attributes of the Dynamic MBean, and returns the
list of attributes that have been set.
Set the appender to falkback upon in case of failure.
The BufferedIO option takes a boolean value.
The BufferSize option takes a non-negative integer value.
Set the size of the IO buffer.
The BufferSize option takes a positive integer
representing the maximum number of logging events to collect in a
cyclic buffer.
This method is used to set the property that controls whether
the LogBrokerMonitor
is hidden or closed when a user
exits
the monitor.
Set the category associated with this LogRecord.
The
CategoryPrefixing option specifies whether
Category
name is part of log output or not.
The ContextPrinting option specifies log output will include
the nested context information belonging to the current thread.
Set the ConversionPattern option.
Sets the DateFormat
used to format time and date in the
zone determined by timeZone
.
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.
Sets the DateFormat used to format date and time in the time zone
determined by timeZone
parameter.
The DatePattern takes a string in the same format as
expected by SimpleDateFormat
.
Set the delay to observe between each check of the file changes.
Ensures that the given driver class has been loaded for sql connection
creation.
The
EvaluatorClass option takes a string value
representing the name of the class implementing the
TriggeringEventEvaluator
interface.
If the FacilityPrinting option is set to true, the printed
message will include the facility name of the application.
The File property takes a string value which should be the
name of the file to append to.
Sets and opens the file where the log output will
go.
Sets and opens the file where the log output will
go.
Sets whether the appender honors reassignments of System.out
or System.err made after configuration.
The From option takes a string value which should be a
e-mail address of the sender.
If the ImmediateFlush option is set to
true
, the appender will flush at the end of each
write.
Setting the InitialContextFactoryName method will cause
this JMSAppender
instance to use the InitialContext.InitialContext(Hashtable)
method instead of the
no-argument constructor.
Allows to enable/disable log4j internal logging.
Set the
Layout
for this appender.
Set the layout for this appender.
Set the level of this Category.
Setting a null value to the level of the root category may have catastrophic
results.
Setting a null value to the level of the root logger may have catastrophic
results.
Set the level of this LogRecord.
Set the location in code where this LogRecord originated.
The LocationInfo option takes a boolean value.
The LocationInfo option takes a boolean value.
If true, the information sent to the remote subscriber will
include caller's location information.
The LocationInfo option takes a boolean value.
The LocationInfo option takes a boolean value.
The LocationInfo option takes a boolean value.
The LocationInfo option takes a boolean value.
Add a reference to a logger to which the failing appender might
be attached to.
Adds the logger passed as parameter to the list of
loggers that we need to search for in case of appender failure.
Set the maximum number of backup files to keep around.
Set maximum depth of this diagnostic context.
Set the maximum size that the output file is allowed to reach
before being rolled over to backup files.
Set the maximum size that the output file is allowed to reach
before being rolled over to backup files.
Set the message associated with this LogRecord.
Set the event time of this record.
Set the name of this appender.
Set the name of this Appender.
Set the NDC (nested diagnostic context) for this record.
Set the next filter pointer.
The paswword to use when creating a topic session.
The Port [roperty is used for setting the port for
listening to external roll over messages.
The Port option takes a positive integer representing
the port where the server is waiting for connections.
The Port option takes a positive integer representing
the port where the server is waiting for connections.
Set the level of this Category.
Set the properties of an object passed as a parameter in one
go.
Set the properites for the object that match the
prefix
passed as parameter.
Set the named property given a PropertyDescriptor
.
Set a property on this PropertySetter's Object.
In quite mode no LogLog generates strictly no output, not even
for errors.
Sets the quiet writer being used.
Sets the quiet writer being used.
The ReconnectionDelay option takes a positive integer
representing the number of milliseconds to wait between each
failed connection attempt to the server.
The
RemoteHost option takes a string value which should be
the host name of the server where a
SocketNode
is
running.
Used by subclasses to add a renderer to the hierarchy passed as parameter.
Sets LoggerFactory
but only if the correct
guard is passed as parameter.
Set the sequence number assocsiated with this LogRecord.
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.
The Source option which names the source of the event.
The Subject option takes a string value which should be a
the subject of the e-mail message.
The SyslogHost option is the name of the the syslog host
where log output should go.
Sets the value of the Target option.
Set the thread description associated with this LogRecord.
The ThreadPrinting option specifies whether the name of the
current thread is part of log output or not.
Enable logging for logging requests with level l
or
higher.
Set the repository-wide threshold.
Set the Throwable associated with this LogRecord.
Set stack trace information associated with this Log4JLogRecord.
Set the ThrownStackTrace for the log record.
The TimeZoneID option is a time zone ID string in the format
expected by the TimeZone.getTimeZone
method.
The Title option takes a String value.
The To option takes a string value which should be a
comma separated list of e-mail address of the recipients.
The TopicBindingName option takes a
string value.
The TopicConnectionFactoryBindingName option takes a
string value.
The user name to use when creating a topic session
.
Sets the Writer where the log output will go.
Calling this method will safely close and remove all
appenders in all the categories including root contained in the
default hierachy.
Shutting down a hierarchy will safely close and remove
all appenders in all categories including the root logger.
SimpleLayout consists of the level of the log statement,
followed by " - " and then the log message itself.
Send an e-mail when a specific logging event occurs, typically on
errors or fatal errors.
The default constructor will instantiate the appender with a
TriggeringEventEvaluator
that will trigger on events with
level ERROR or higher.
Connects to remote server at address
and port
.
Connects to remote server at host
and port
.
The SocketHandler class is used to accept connections from
clients.
Connects to remote server at address
and port
.
Read
LoggingEvent
objects sent from a remote client using
Sockets (TCP).
A
SocketNode
based server that uses a different hierarchy
for each client.
Fast space padding method.
Stores the string given to the pattern layout for conversion into a SQL
statement, eg: insert into LogTable (Thread, Class, Message) values
("%t", "%c", "%m").
Starts an instance of the LogFactor5 console for off-line viewing.
This is a very simple filter based on string matching.
This method differentiates DailyRollingFileAppender from its
super class.
This method differentiates RollingFileAppender from its super
class.
Actual writing occurs here.
Perform variable substitution in string val
from the
values of keys found in the system propeties.
Implements the usual roll over behaviour.
Use SyslogAppender to send log messages to a remote syslog daemon.
SyslogQuietWriter extends QuietWriter by prepending the syslog
level code before each printed String.
SyslogWriter is a wrapper around the java.net.DatagramSocket class
so that it behaves like a java.io.Writer.
Measures the time required to make a System.currentTimeMillis() and
Thread.currentThread().getName() calls.
The last filter in the filter chain.
The TelnetAppender is a log4j appender that specializes in
writing to a read-only socket.
Render ThreadGroup
objects in a format similar to the
information output by the ThreadGroup.list
method.
ThreadLocalMap
extends InheritableThreadLocal
to bequeath a copy of the hashtable of the MDC of the parent
thread.
There is no level threshold filtering by default.
ThrowableInformation is log4j's internal representation of
throwables.
The number of milliseconds elapsed from 1/1/1970 until logging event
was created.
A string constant used in naming the option for setting the the
HTML document title.
If value
is "true", then true
is
returned.
Returns the integer representation of this level.
Convert an integer passed as argument to a level.
Convert an integer passed as argument to a level.
Convert the string passed as argument to a level.
Convert the string passed as argument to a level.
Converts a standard or custom priority level to a Level
object.
Return a String representation of this LogRecord.
Returns the string representation of this priority.
TRACE - static field in class org.apache.log4j.
Level The TRACE
Level designates finer-grained
informational events than the DEBUG
Log a message object with the
TRACE
level.
Log a message object with the TRACE
level including the
stack trace of the Throwable
t
passed as parameter.
TRACE level integer value.
Utility class for transforming strings.
Implementions of this interface allow certain appenders to decide
when to perform an appender specific action.
A conversion pattern equivalent to the TTCCCLayout.
TTCC layout format consists of time, thread, category and nested
diagnostic context information, hence the name.
Instantiate a TTCCLayout object using the local time zone.