|
Log4j 1.3alpha-5 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
null
, then FileAppender.setFile(java.lang.String)
is called with the values of File and
Append properties.
event
as the last event in the buffer.
newAppender
to the list of appenders of this Category
instance.
LoggerEventListener
to the repository.
LoggerEventListener
to the repository.
LoggerRepositoryEventListener
to the repository.
LoggerRepositoryEventListener
to the repository.
ALL
has the lowest possible rank and is intended to
turn on all logging.
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)
method.
AppenderSkeleton
should implement this method
to perform actual logging.
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)
method to
do most of the real appending work.
AppenderAttachable
interface.doAppend
method on all attached appenders.
assertion
parameter is false
, then logs
msg
as an error
statement.
org.xml.sax.Attributes
objects.BoundedFIFO
serves as the bounded first-in-first-out
buffer heavily used by the AsyncAppender
.this
.
Logger
subclass. Category
instance and sets
its name.
NamedPatternConverter
.
AsyncAppender
by interrupting the dispatcher
thread which will process all pending events before exiting.
WriterAppender.closeWriter()
method instead.
Writer
.
WriterAppender.closeWriter()
implementation to do nothing because
the console stream is not ours to close.
Compression
class implements ZIP and GZ
file compression/decompression methods.ConsoleAppender
that uses PatternLayout
using the PatternLayout.TTCC_CONVERSION_PATTERN
and
prints to System.out
to the root category.
appender
to the root category.
properties
.
configURL
.
Properties
object for a
LoggerFactory
entry specified by PropertyConfigurator.LOGGER_FACTORY_KEY
.
Connection
s for log4j classes
that require the use of a Connection
.System.out
or
System.err
using a layout specified by the user. RepositorySelector
in Servlet Containers at:
http://qos.ch/logging/sc.html
By default, the class static RepositorySelector
variable
of the LogManager
class is set to a trivial
RepositorySelector
implementation which always returns the same logger repository. a.k.a.
val
a String parameter to an object of a
given type.
LoggingEvents
for immediate or differed display.
maxSize
events.
ConnectionSource
that obtains the Connection in the recommended JDBC manner based on
a DataSource
.
DEBUG
Level designates fine-grained
informational events that are most useful to debug an
application.
System.out
.
DEBUG
level.
DEBUG
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
DEBUG
level including the
stack trace of the Throwable
t
passed as parameter.
DEBUG
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
Filter.NEUTRAL
is there is no string match.
Filter.NEUTRAL
is there is no string match.
Filter.DENY
regardless of the LoggingEvent
parameter.
DENY
, then the event will be
dropped.
AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent)
method.
Appender
specific way.
configStream
.
properties
.
configURL
.
JoranConfigurator
.ThreadGroup
object similar to the way that the
ThreadGroup.list()
method output information.
Message
.
Attributes
.
ConnectionSource
that obtains the Connection in the traditional JDBC manner based on the
connection URL.
PrintStream
.
ERROR
level designates error events that
might still allow the application to continue running.
ERROR
Level.
ERROR
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
ERROR
level including the
stack trace of the Throwable
t
passed as parameter.
ERROR
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
LogManager.exists(java.lang.String)
instead.
RuleFactory
.
FATAL
level designates very severe error
events that will presumably lead the application to abort.
FATAL
Level.
FATAL
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
FATAL
level including the
stack trace of the Throwable
t
passed as parameter.
FATAL
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
filename
.
filename
.
FileAppender
and open the file
designated by filename
.
close
method.
o
parameter.
key
in
props
.
LoggerEventListener
.
LoggerEventListener
.
LoggerRepositoryEventListener
.
LoggerRepositoryEventListener
.
LoggerEventListener
.
LoggerEventListener
.
LoggerEventListener
.
LoggerEventListener
.
FixedWindowRollingPolicy
renames files
according to a fixed window algorithm as described below.
sbuf
the number of milliseconds elapsed
since the start of the application.
NDC
information.
level
, followed by " - " and then the
message
.
LoggingEvent
in conformance with the log4j.dtd.
LoggingEvent.getNDC()
method instead.
clazz
for a renderer.
RendererMap.get(Class)
with the
class of the object parameter.
key
parameter.
AcceptOnMatch
option.
Enumeration
.
name
.
name
.
Category.getEffectiveLevel()
method instead.
Connection
for use.
Hierarchy.getCurrentLoggers()
instead.
LogManager.getCurrentLoggers()
instead.
LoggerRepository.getCurrentLoggers()
instead.
Enumeration
.
LogManager.getLoggerRepository()
instead.
error items
.
Category.getLoggerRepository()
instead.
new
.
Logger.getLogger(Class)
instead.
Logger.getLogger(String)
method instead.
Enumeration
.
Level
, if any, for this Category.
LevelMax
option.
LevelMin
option.
Logger
instance.
getLogger(clazz.getName())
.
Logger
instance.
ULogger
instance.
SimpleLogger
instance.
ULogger
by name, by delegating all work to log4's
LogManager
.
Logger
instance.
Logger.getLogger(String)
except that the type of logger
instantiated depends on the type returned by the LoggerFactory.makeNewLoggerInstance(java.lang.String)
method of the
factory
parameter.
factory
.
ULogger
instance in domain
, subDomain
.
ULogger
by domain and subdomain name, by delegating all work
to log4's LogManager
.
LoggerRepository
where this Category
is attached.
LoggerRepository
depending on the context.
LoggerRepository
by name.
Category.getLevel()
instead.
resource
in different
places.
ResourceBundle
for this category.
key
in this
category's inherited resource bundle.
Logger.getRootLogger()
method instead.
Scheduler
for this LoggerRepository.
System.getProperty
except
that the SecurityException
is hidden.
Level
representation of the enable
state.
Hierarchy
.Exceptions
.
LoggingEvent
, then the layout should return false
.
RuleFactory
NOTE: parsing is supported through the use of StringTokenizer
, which means
all tokens in the expression must be separated by spaces.
INFO
level designates informational messages
that highlight the progress of the application at coarse-grained
level.
INFO
Level.
INFO
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
INFO
level including the stack
trace of the Throwable
t
passed as parameter.
INFO
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
repository
using configuratonResourceStr
and configuratorClassNameStr
.
IntegerTokenConverter
the
string value of that integer.Introspector
to computer setters of object to be
configured.
true
if the specified appender is in the
list of attached appenders, false
otherwise.
true
if the specified appender is in list of
attached attached, false
otherwise.
DEBUG
Level.
true
if this repository is
disabled for level
object passed as parameter and
false
otherwise.
Level
passed
as parameter.
true
if the buffer is full, i.e. of the
number of elements in the buffer equals the buffer size.
true
if this level has a higher or equal
level than the level passed as argument, false
otherwise.
ULogger
interface.JMSAppender
.ConnectionSource
that obtains a DataSource
from a
JNDI provider and uses it to obtain a Connection
. ExecutionContext
. OFF
, FATAL
, ERROR
,
WARN
, INFO
, DEBUG
,
TRACE
, and ALL
.
Thread
contextClassLoader
if that
fails try Class.forname.
EntityResolver
specifically designed to return
log4j.dtd
which is embedded within the log4j jar
file.LogManager
to do its job.LoggerFactory
.
Logger
instance and sets
its name.
Logger
related events such as
add/remove appender or changing levels. LoggerFactory
can produce Loggers for various logging APIs,
most notably for log4j, JDK 1.4 logging. LoggerFactory
.
LoggerRepository
is used to create and retrieve
Loggers
. LoggerRepository
related
events such as startup, reset, and shutdown. Logger
instead.LogManager
class to retreive Logger
instances or to operate on the current LoggerRepository
. NDC
class except that it is
based on a map instead of a stack. javax.jms.Message
objects.ULogger
.LoggerFactoryAdapter
which always returns the unique instance of NOPLogger.Configurator.INHERITED
.
OFF
has the highest possible rank and is
intended to turn off logging.
javax.jms.Message
.org.xml.sax.Attributes
.null
.
LoggerRepository
object store.
PatternLayout
class
is delegated to the PatternParser class.
PrintWriter
.PropertySetter
utility class.ObjectRenderer
for clazz
.
LoggingEvent
in the buffer.
MDC.put(String key, String val)
form.
val
parameter) as identified
with the key
parameter into the current thread's
context map.
Date
by printing the number of milliseconds
elapsed since the start of the application. key
parameter.
LoggerEventListener
from the repository.
LoggerEventListener
from the repository.
LoggerRepositoryEventListener
from the repository.
LoggerRepositoryEventListener
from the repository.
ObjectRenderer
.LogManager
uses one (and only one)
RepositorySelector
implementation to select the
LoggerRepository
for a particular application context.
SMTPAppender
requires a layout
.
newSize
.
TimeBasedRollingPolicy
or similar timed-based rolling policies. RollingFileAppender
extends FileAppender
to backup the log files
depending on RollingPolicy
and TriggeringPolicy
.
parents constructor
.
RollingPolicy
is responsible for performing the
rolling over of the active log file. RootLogger
.AcceptOnMatch
option.
Category
name is part of log output or not.
TriggeringEventEvaluator
for this instance of SMTPAppender.
SMTPAppender.setEvaluator(org.apache.log4j.spi.TriggeringEventEvaluator)
.
true
, the appender will flush at the end of each
write.
JMSAppender
instance to use the InitialContext.InitialContext(Hashtable)
method instead of the
no-argument constructor.
Layout
for this appender.
LevelMax
option.
LevelMin
option.
setOption
method.
prefix
passed as parameter.
PropertyDescriptor
.
SocketNode
or a
SocketReceiver
is running.
RepositorySelector
but only if the correct
guard is passed as parameter.
Category.l7dlog(Level,String,Throwable)
and Category.l7dlog(Level,String,Object[],Throwable)
.
l
or
higher.
Hierarchy.setThreshold(Level)
.
LoggerRepository.setThreshold(Level)
accepting a string
parameter instead of a Level
.
TopicConnectionFactory.createTopicConnection(String, String)
creating a topic session}.
LogManager.shutdown()
instead.
SimpleLoggerFA
in case
an appropriate LoggerRepository was not set or could not be found.
System.out).
- SimpleLoggerFA - class org.apache.ugli.impl.SimpleLoggerFA.
- An implementation of
LoggerFactoryAdapter
which always returns
SimpleLogger
instances. - SimpleLoggerFA() -
Constructor for class org.apache.ugli.impl.SimpleLoggerFA
-
- SimpleSocketServer - class org.apache.log4j.net.SimpleSocketServer.
- A simple
SocketNode
based server.
- SimpleSocketServer() -
Constructor for class org.apache.log4j.net.SimpleSocketServer
-
- SizeBasedTriggeringPolicy - class org.apache.log4j.rolling.SizeBasedTriggeringPolicy.
- SizeBasedTriggeringPolicy looks at size of the file being
currently written to.
- SizeBasedTriggeringPolicy() -
Constructor for class org.apache.log4j.rolling.SizeBasedTriggeringPolicy
-
- 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
level ERROR or higher.
- SMTPAppender(TriggeringEventEvaluator) -
Constructor for class org.apache.log4j.net.SMTPAppender
- Use
evaluator
passed as parameter as the TriggeringEventEvaluator
for this SMTPAppender.
- socket -
Variable in class org.apache.log4j.net.SocketHubReceiver
-
- 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
.
- socketClosedEvent(Exception) -
Method in interface org.apache.log4j.net.SocketNodeEventListener
- Called when the socket the node was given has been closed.
- socketClosedEvent(Exception) -
Method in class org.apache.log4j.net.SocketHubReceiver
- Listen for a socketClosedEvent from the SocketNode.
- SocketHubAppender - class org.apache.log4j.net.SocketHubAppender.
- Sends
LoggingEvent
objects to a set of remote log servers,
usually a SocketNodes
.
- SocketHubAppender() -
Constructor for class org.apache.log4j.net.SocketHubAppender
-
- SocketHubAppender(int) -
Constructor for class org.apache.log4j.net.SocketHubAppender
- Connects to remote server at
address
and port
.
- SocketHubReceiver - class org.apache.log4j.net.SocketHubReceiver.
- SocketHubReceiver receives a remote logging event on a configured
socket and "posts" it to a LoggerRepository as if the event was
generated locally.
- SocketHubReceiver() -
Constructor for class org.apache.log4j.net.SocketHubReceiver
-
- SocketHubReceiver(String, int) -
Constructor for class org.apache.log4j.net.SocketHubReceiver
-
- SocketHubReceiver(String, int, LoggerRepository) -
Constructor for class org.apache.log4j.net.SocketHubReceiver
-
- SocketHubReceiverBeanInfo - class org.apache.log4j.net.SocketHubReceiverBeanInfo.
- BeanInfo class for the SocketHubReceiver.
- SocketHubReceiverBeanInfo() -
Constructor for class org.apache.log4j.net.SocketHubReceiverBeanInfo
-
- SocketNode - class org.apache.log4j.net.SocketNode.
- Read
LoggingEvent
objects sent from a remote client using
Sockets (TCP). - SocketNode(Socket, LoggerRepository) -
Constructor for class org.apache.log4j.net.SocketNode
- Constructor for socket and logger repository.
- SocketNode(Socket, Receiver) -
Constructor for class org.apache.log4j.net.SocketNode
- Constructor for socket and reciever.
- SocketNodeEventListener - interface org.apache.log4j.net.SocketNodeEventListener.
- Interface used to listen for
SocketNode
related
events. - socketOpened(String) -
Method in interface org.apache.log4j.net.SocketNodeEventListener
- Called when the SocketNode is created and begins awaiting data.
- socketOpened(String) -
Method in class org.apache.log4j.net.SocketHubReceiver
-
- SocketReceiver - class org.apache.log4j.net.SocketReceiver.
- SocketReceiver receives a remote logging event on a configured
socket and "posts" it to a LoggerRepository as if the event was
generated locally.
- SocketReceiver.SocketDetail - class org.apache.log4j.net.SocketReceiver.SocketDetail.
-
- SocketReceiver() -
Constructor for class org.apache.log4j.net.SocketReceiver
-
- SocketReceiver(int) -
Constructor for class org.apache.log4j.net.SocketReceiver
-
- SocketReceiver(int, LoggerRepository) -
Constructor for class org.apache.log4j.net.SocketReceiver
-
- 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
-
- spacePad(Writer, int) -
Method in class org.apache.log4j.pattern.PatternConverter
- Fast space padding method.
- SQLDialect - interface org.apache.log4j.db.dialect.SQLDialect.
-
- sqlStatement -
Variable in class org.apache.log4j.db.CustomSQLDBReceiver
-
- StackPatternConverter - class org.apache.log4j.pattern.StackPatternConverter.
-
- StackPatternConverter() -
Constructor for class org.apache.log4j.pattern.StackPatternConverter
-
- startTime -
Variable in class org.apache.log4j.helpers.RelativeTimeDateFormat
-
- startWatching() -
Method in interface org.apache.log4j.config.ConfigWatchdog
- Starts this watchdog watching.
- stopAllPlugins() -
Method in class org.apache.log4j.plugins.PluginRegistry
- Stops all plugins in the given logger repository.
- stopPlugin(String) -
Method in class org.apache.log4j.plugins.PluginRegistry
- Stops a plugin by plugin name and repository.
- stopWatching() -
Method in interface org.apache.log4j.config.ConfigWatchdog
- Stops this watchdog.
- StringMatchFilter - class org.apache.log4j.filter.StringMatchFilter.
- This is a very simple filter based on string matching.
- StringMatchFilter() -
Constructor for class org.apache.log4j.filter.StringMatchFilter
-
- subAppend(LoggingEvent) -
Method in class org.apache.log4j.WriterAppender
- Actual writing occurs here.
- subAppend(LoggingEvent) -
Method in class org.apache.log4j.rolling.RollingFileAppender
- This method differentiates RollingFileAppender from its super
class.
- SubstitutionPropertyAction - class org.apache.log4j.joran.action.SubstitutionPropertyAction.
- This action set new substitution property for the execution context by name,
value pair, or adds all the properties found in the specified file.
- SubstitutionPropertyAction() -
Constructor for class org.apache.log4j.joran.action.SubstitutionPropertyAction
-
- substVars(String, Properties) -
Static method in class org.apache.log4j.helpers.OptionConverter
- Perform variable substitution in string
val
from the values of
keys found the properties passed as parameter or in the system propeties.
- supportsBatchUpdates -
Variable in class org.apache.log4j.db.ConnectionSourceSkeleton
-
- supportsBatchUpdates() -
Method in class org.apache.log4j.db.ConnectionSourceSkeleton
- Does this connection support batch updates?
- supportsBatchUpdates() -
Method in interface org.apache.log4j.db.ConnectionSource
- If the connection does not support batch updates, we will avoid using them.
- supportsBatchUpdates(DatabaseMetaData) -
Method in class org.apache.log4j.db.dialect.Util
- This method handles cases where the
DatabaseMetaData.supportsBatchUpdates()
method is missing in the
JDBC driver implementation.
- supportsGetGeneratedKeys -
Variable in class org.apache.log4j.db.ConnectionSourceSkeleton
-
- supportsGetGeneratedKeys() -
Method in class org.apache.log4j.db.ConnectionSourceSkeleton
- Does this connection support the JDBC Connection.getGeneratedKeys method?
- supportsGetGeneratedKeys() -
Method in interface org.apache.log4j.db.ConnectionSource
- If the connection supports the JDBC 3.0 getGeneratedKeys method, then
we do not need any specific dialect support.
- supportsGetGeneratedKeys(DatabaseMetaData) -
Method in class org.apache.log4j.db.dialect.Util
- This method handles cases where the
DatabaseMetaData.supportsGetGeneratedKeys()
method is missing in the
JDBC driver implementation.
- SYSLOG_HOST_OI -
Static variable in class org.apache.log4j.net.SyslogAppender
-
- SyslogAppender - class org.apache.log4j.net.SyslogAppender.
- Implements an RFC 3164 compliant agent to send log messages to a remote
syslog daemon.
- SyslogAppender() -
Constructor for class org.apache.log4j.net.SyslogAppender
-
- SyslogConstants - class org.apache.log4j.net.SyslogConstants.
- Constants used by the
SyslogAppender
class. - SyslogConstants() -
Constructor for class org.apache.log4j.net.SyslogConstants
-
- 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
-
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.TimeBasedRollingPolicy
is both easy to configure and quite
powerful.
value
is "true", then true
is
returned.
TokenConverter
offers some basic functionality used by more
specific token converters.
TRACE
Level designates finer-grained
informational events than the DEBUG
TRACE_INT -
Static variable in class org.apache.log4j.Level
TRACE
level.
TRACE
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
TRACE
level including the
stack trace of the Throwable
t
passed as parameter.
TRACE
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
TriggeringPolicy
controls the conditions under which rollover
occurs. PatternLayout
instead.address
and port
.
address
and port
.
EntityResolver
specifically designed to return
java 1.4's logging dtd, logger.dtd
which is embedded within the log4j jar
file. WARN
level designates potentially harmful situations.
WARN
Level.
WARN
level with message formatting
done according to the value of messagePattern
and
arg
parameters.
WARN
level including the stack trace
of the Throwable
t
passed as parameter.
WARN
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
true
if there is just one element in the
buffer.
true
if the number of elements in the
buffer plus 1 equals the maximum buffer size, returns
false
otherwise.
Layout.getFooter()
method.
Layout.getHeader()
method.
Writer
where we will write to.
Writer
or an
OutputStream
depending on the user's choice.LoggingEvent
objects sent from a remote client using XML over
Sockets (TCP). WriterAppender.closeWriter()
method instead.
|
Log4j 1.3alpha-5 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |