|
Log4j 1.3alpha-3 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
AbsoluteTimeDateFormat
in layouts.
Date
in the format "HH:mm:ss,SSS" for example,
"15:49:37,459".Action
by adding logging capabilitiesnull
, then FileAppender.setFile(java.lang.String)
is called with the values of File and
Append properties.
event
as the last event in the buffer.
event
as the last event in the buffer.
newAppender
to the list of appenders of this Category
instance.
PatternConverter
class.
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.
configuration
element as
defined in the log4j.dtd.
properties
.
DOMConfigurator.doConfigure(String, LoggerRepository)
.
configURL
.
DOMConfigurator.doConfigure(URL, LoggerRepository)
.
DOMConfigurator.configureAndWatch(String, long)
except that the
default delay as defined by FileWatchdog.DEFAULT_DELAY
is
used.
configFilename
if it
exists.
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.
maxSize
events.
ConnectionSource
that obtains the Connection in the recommended JDBC manner based on
a DataSource
.
DateTimeDateFormat
in layouts.
Date
in the format "dd MMM YYYY HH:mm:ss,SSS" for example,
"06 Nov 1994 15:49:37,459".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.
DENY
, then the event will be
dropped.
Filter.NEUTRAL
is there is no string match.
Filter.NEUTRAL
is there is no string match.
Filter.DENY
regardless of the LoggingEvent
parameter.
AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent)
method.
Appender
specific way.
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.
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.
System.err
.
System.err
.
System.err
.
ErrorHandler.error(String, Exception, int,
LoggingEvent event)
with the the event parameteter set to
null
.
System.err
.
System.err
.
System.err
.
ERROR
level with message formatting
done according to the messagePattern and the arguments arg1 and arg2.
ErrorHandlers
.
LogManager.exists(java.lang.String)
instead.
RuleFactory
.
FallbackErrorHandler
implements the ErrorHandler
interface such that a secondary appender may be specified. 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
.
sbuf
the number of milliseconds elapsed
since the start of the application.
sbuf
.
sbuf
the date in the format "dd MMM YYYY
HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
sbuf
the time in the format
"HH:mm:ss,SSS" for example, "15:49:37,459"
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.
ErrorHandler
for this Appender.
ErrorHandler
for this appender.
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.
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
.
LoggerRepository
where this Category
is attached.
LoggerRepository
depending on the
context.
Category.getLevel()
instead.
resource
in different
places.
ResourceBundle
for this category.
key
in this
category's inherited resource bundle.
Logger.getRootLogger()
method instead.
Scheduler
instance to be shared by multiple
receivers and watchdogs.
System.getProperty
except
that the SecurityException
is hidden.
Level
representation of the enable
state.
true
if the element has the param tag,
returns false otherwise.
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
.
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.
true
if the node passed as parameter is an
Element, returns 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.
ISO8601DateFormat
in layouts.
Date
in the format "YYYY-mm-dd HH:mm:ss,SSS" for example
"1999-11-27 15:49:37,459".
JMSAppender
.ConnectionSource
that obtains a DataSource
from a
JNDI provider and uses it to obtain a Connection
. 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.LoggerFactory
.
Logger
instance and sets
its name.
Logger
related events such as
add/remove appender or changing levels. 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.address
and port
.
address
and port
.
Configurator.INHERITED
.
OFF
has the highest possible rank and is
intended to turn off logging.
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.
javax.jms.Message
.org.xml.sax.Attributes
.null
.
null
.
null
.
null
.
ErrorHandler
element.
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.
quietWriter
where we will write
to.
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
.
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.
DateFormat
used to format time and date in the
zone determined by timeZone
.
SimpleDateFormat
or one of
the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601.
timeZone
parameter.
ErrorHandler
for this WriterAppender and also the
underlying QuietWriter
if any.
ErrorHandler
for this Appender.
ErrorHandler
for this appender.
TriggeringEventEvaluator
interface.
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.
FallbackErrorHandler.addLogger(org.apache.log4j.Logger)
instead.
setOption
method.
prefix
passed as parameter.
PropertyDescriptor
.
SocketNode
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
.
TimeZone.getTimeZone(java.lang.String)
method.
TopicConnectionFactory.createTopicConnection(String, String)
creating a topic session}.
LogManager.shutdown()
instead.
SocketNode
based server.
TriggeringEventEvaluator
that will trigger on events with
level ERROR or higher.
evaluator
passed as parameter as the TriggeringEventEvaluator
for this SMTPAppender.
LoggingEvent
objects to a remote a log server,
usually a SocketNode
.
address
and port
.
host
and port
.
LoggingEvent
objects to a set of remote log servers,
usually a SocketNodes
.
address
and port
.
LoggingEvent
objects sent from a remote client using
Sockets (TCP). SocketNode
related
events. SocketNode
based server that uses a different hierarchy
for each client.
val
from the values of
keys found the properties passed as parameter or in the system propeties.
DatabaseMetaData.supportsBatchUpdates()
method is missing in the
JDBC driver implementation.
DatabaseMetaData.supportsGetGeneratedKeys()
method is missing in the
JDBC driver implementation.
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 yet 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. RelativeTimeDateFormat
as the date
formatter in the local time zone.
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
or an
OutputStream
depending on the user's choice.OutputStreamWriter
initialized with os
as its OutputStream
.
writer
.
LoggingEvent
objects sent from a remote client using XML over
Sockets (TCP). WriterAppender.closeWriter()
method instead.
key
parameter.
|
Log4j 1.3alpha-3 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |