|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
LogEventBridge
.OutputStreamWriter
initialized with os
as its OutputStream
.
Throwable#addSuppressed(Throwable)
. Marked as deprecated because Java 6 is
deprecated.
LogEvent
s.AppenderAdminMBean
interface.AppenderAdmin
with the specified contextName
and appender.
Appender
.Appender
with details an appender implementation shouldn't need to know about.PatternConverter
s implement this interface to accept an array of objects when formatting.AsyncAppenderAdminMBean
interface.AsyncAppenderAdmin
with the specified contextName
and async appender.
AsyncAppender
.AsyncLogger
with the specified context, name and
message factory.
LoggerContext
that creates AsyncLogger
objects.ContextSelector
that returns the singleton AsyncLoggerContext
.AbstractLogEventWrapperEntity
.BurstFilter
is a logging filter that regulates logging traffic.Clock
interface that tracks the time in a
private long field that is updated by a background thread once every
millisecond.AsyncLoggerConfig.asyncCallAppenders(LogEvent)
.
Plugin
class.
Plugin Category
to use for TypeConverter
plugins.
Clock
objects.Closeable
(stream or reader/writer).
Statement
.
Connection
.
Context
.
Closeable
(stream or reader/writer),
ignoring any exceptions thrown by the close operation.
Statement
, ignoring any exceptions thrown by
the close operation.
Connection
, ignoring any exceptions thrown
by the close operation.
Context
, ignoring any exceptions thrown by the close operation.
Configuration
objects from a configuration file.ConfigurationSource
with the specified input stream.
ConfigurationSource
with the specified input stream that originated from the specified
file.
ConfigurationSource
with the specified input stream that originated from the specified
url.
JdbcAppender
.System.out
or
System.err
using a layout specified by the user.Constraint
annotations must implement to perform validation logic.ConstraintValidator
implementation for an annotation.Map<String, String>
s in
LogEvent
s.Map<String, String>
s in
LogEvent
s.ThreadContext
objects..ContextSelectorAdminMBean
interface.ContextSelectorAdmin
.
ContextSelector
.ThreadContext.ContextStack
s in
LogEvent
s.ThreadContext.ContextStack
s in
LogEvent
s.RingBufferLogEvent
.
RingBufferAdmin
that instruments the
ringbuffer of the AsyncLogger
.
RingBufferAdmin
that instruments the
ringbuffer of this AsyncLoggerConfig
.
maxSize
events.
JdbcAppender
connection source that uses a DataSource
to connect to the database.ThrowableFormatOptions
.
DefaultRolloverStrategy
renames files
according to an algorithm as described below.Runtime.addShutdownHook(Thread)
.ThreadFactory
.
ObjectName
of all MBeans that instrument Log4J2 components.
String
into a Enum
.ErrorHandler
configured for this Appender.
ErrorHandler
configured for
this Appender.
ErrorHandler
configured for this Appender.
ErrorHandlers
.StackTraceElement
in a ExtendedStackTraceElement
.StackTraceElement
by adding more location information.EventFactory
for RingBufferLogEvent
s.
JdbcAppender
connection source that uses a public static factory method to obtain a Connection
or
DataSource
.DatePatternConverter
.key
in
props
.
TypeConverter
for the given Type
, falling back to an assignment-compatible TypeConverter
if none exist for the given type.
ConstraintValidator
objects from an array of annotations.
PluginVisitorStrategy
annotation.
AbstractDatabaseManager.shutdown()
.
org.apache.logging.log4j.spi.ExtendedLoggerWrapper
, inherit the convenience
methods for the built-in levels provided by the Logger
interface.AsyncAppender
.
LoggerConfig
.
Clock
instance depending on the value of system
property ClockFactory.PROPERTY_NAME
.
Configuration
of the instrumented
LoggerContext.
Configuration
of the instrumented LoggerContext.
null
.
setConfigText
.
setConfigText
.
Key: "fileURI" Value: provided "advertiseURI" param
.
Collections.emptyMap()
.
StatusLogger
is associated with.
CustomLevelConfig
objects created during configuration.
InitialContext
.
InitialContext
.
toString
on the error handler of
this appender, or "null"
if no error handler was set.
toString
on the error handler of
this appender, or "null"
if no error handler was set.
null
.
null
.
null
.
Field
, making it accessible if required.
null
if this configuration source is based on an URL or has
neither a file nor an URL.
Appender
.
AsyncAppender
.
LoggerConfig
.
ErrorHandler
used for handling exceptions.
hw
.
ContextSelector
interface.
JdbcAppender
, or returns a suitable one if it already exists.
JpaAppender
, or returns a suitable one if it already exists.
null
, as database appenders do not use a single layout.
toString
on the Layout
object of the instrumented Appender
.
toString
on the Layout
object of the instrumented AsyncAppender
.
LoggerConfig
level as a String.
StatusLogger
level as a String.
locale
.
null
if this configuration source
has neither a file nor an URL.
Appender
.
AsyncAppender
.
LoggerConfig
.
LoggerContext
.
ObjectName
of this mbean.
ObjectName
of this mbean.
ObjectName
of this mbean.
ObjectName
of this mbean.
ObjectName
of this mbean.
ObjectName
that this MBean is registered with in the
MBean server.
ObjectName
of this mbean.
ObjectName
of this mbean.
ObjectName
that this status logger mbean is registered with.
os
.
null
if this LoggerConfig
does not have any configuration
properties.
resource
in different
places.
resource
in different
places.
runtime
.
Field
, making it accessible if required.
LoggerContext
.
StatusData
objects in the
status history.
charsetName
, otherwise (if the specified
charsetName
is null
or not supported) this method returns the platform default Charset.
charsetName
, otherwise (if the specified
charsetName
is null
or not supported) this method returns the platform default Charset.
Throwable#getSuppressed()
. Marked as deprecated because Java 6 is
deprecated.
null
if this configuration source is based on a file or has
neither a file nor an URL.
vm
.
LogEvent
s from an InputStream
.T
object using the default constructor of its class.
StrLookup
s.Member
is both public and is contained in a public class.
LoggerConfig
is additive.
Type
s are assignment compatible.
true
if this AsyncAppender will block when the queue is full,
or false
if events are dropped when the queue is full.
true
if this AsyncAppender will block when the queue is full,
or false
if events are dropped when the queue is full.
true
if this AsyncAppender will block when the queue is
full, or false
if events are dropped when the queue is full.
true
if this event is the end of a batch, false
otherwise.
true
if this event is the last one in a batch, false
otherwise.
Appender
are
handled.
AsyncAppender
are handled.
true
if the content of the buffer should be forced to the storage device on every write,
false
otherwise.
true
if this AsyncAppender will take a snapshot of the stack with
every log event to determine the class and method where the logging call
was made.
includeLocation
,
or, if no such attribute was configured, true
if logging is
synchronous or false
if logging is asynchronous.
true
if this AsyncAppender will take a snapshot of the stack with
every log event to determine the class and method where the logging call
was made.
true
if this AsyncAppender will take a snapshot of the
stack with every log event to determine the class and method where the
logging call was made.
LoggerConfig
is configured to
include location.
AbstractDatabaseManager.startup()
has been called and AbstractDatabaseManager.shutdown()
has not been called).
AbstractDatabaseManager
implementation for relational databases accessed via JDBC.Destination
.Context
manager.AbstractDatabaseManager
implementation for relational databases accessed via JPA.LogEvent
s from an InputStream
..Level
s in LogEvent
s.LoggerContext
.java.*
namespace by name.
Constants.LOG4J_CONTEXT_SELECTOR
.
Constants.LOG4J_CONTEXT_SELECTOR
and the provided ShutdownRegistrationStrategy.
ObjectMapper
initialized for Log4j.Log4jJsonModule
.
ObjectMapper
initialized for Log4j.Log4jXmlModule
.
LogEvent
s from the given input stream and logs them as they are discovered on the given logger.LogEvent
s.LogEvent
s from the given input stream and logs them as they are discovered on the given logger.
Logger
interface.LoggerConfigAdminMBean
interface.LoggerConfigAdmin
with the specified LoggerContext
and logger config.
LoggerConfig
.LoggerContextAdminMBean
interface.LoggerContextAdmin
with the Executor
to be used for sending Notification
s asynchronously to listeners.
LoggerContext
.lookup(null, key);
null
.
PluginProcessor
instead. To do so,
simply include log4j-core
in your dependencies and make sure annotation processing is not
disabled. By default, supported Java compilers will automatically use that plugin processor provided
log4j-core
is on the classpath.
Member
accessible
if the member is not public.
Field
accessible
if it is not public or if it is final.
Marker
s in LogEvent
s.Message
s in LogEvent
s.Node
and initializes it
with a name and the corresponding XML element.
StatusData
userData object
and a null
message.
StatusData
in their userData field.
Configuration
of the instrumented
LoggerContext
has been reconfigured.
LogEvent
objects from an ObjectInputStream
.ConfigurationFactory
plugin.Order
.StatusLogger
API.true
if s
is "true"
(case-insensitive), false
if s
is
"false"
(case-insensitive), and defaultValue
if s
is anything else (including null or
empty).
AsyncLogger
ring buffer.
AsyncLoggerConfig
ring buffers.
PatternLayout
class is delegated to the
PatternParser class.Plugin
, PluginAttribute
, or PluginBuilderAttribute
.PluginAttribute
.PluginConfiguration
.PluginElement
.PluginNode
PluginValue
.Node
, doing any relevant type conversion, and returning a
parsed value for that variable.PluginVisitor
implementation for an annotation.PluginVisitor
for the annotated annotation.Clock
implementation class.
ByteBuffer
and a RandomAccessFile
to do the
I/O.NullPointerException
if the specified parameter is
null
, otherwise returns the specified parameter.
ConfigurationSource
whose input stream is reset to the beginning.
Throwable
, wrapping checked exceptions into an UndeclaredThrowableException
.
RingBufferLogEvent
.ByteBuffer
and a RandomAccessFile
to do the
I/O.RollingPolicy
specifies the actions taken on a logging file rollover.SecretKey
instance.LogEvent
in its Java serialized form.LoggerConfig
should be additive.
Field
, making it accessible if required.
ErrorHandler
used for handling exceptions.
LoggerConfig
level to the specified value.
StatusLogger
level to the specified value.
public static main(String[])
method calls this method to make its main arguments
available for lookup with the prefix main
.
Field
, making it accessible if required.
AbstractManager.release()
method when the appender is stopped or the appender's manager
is replaced.
StackTraceElement
s in LogEvent
s.StatusConsoleListener
instances.StatusLoggerAdminMBean
interface.StatusLoggerAdmin
with the Executor
to
be used for sending Notification
s asynchronously to listeners.
StatusLogger
.StructuredDataMessage
log messages.val
from the
values of keys found in the system propeties.
Clock
interface that returns the system time.Throwable
s in LogEvent
s.Throwable
pattern is formatted.value
is "true", then true
is
returned.
LogEvent
as a serialized byte array of the LogEvent object.
LogEvent
in conformance with the RFC 5424 Syslog specification.
LogEvent
in conformance with the BSD Log record format.
Object.toString()
to provide information about the connection
configuration (obscuring passwords with one-way hashes).
"name:level[ in context_name]"
.
separator
surrounded by whitespace.
TriggeringPolicy
controls the conditions under which rollover
occurs.TypeConverter
plugins.String
into a BigDecimal
.String
into a BigInteger
.String
into a Boolean
.String
into a byte[]
.String
into a Byte
.String
into a Character
.String
into a char[]
.String
into a Charset
.String
into a Class
.String
into a Double
.String
into a File
.String
into a Float
.String
into a Integer
.String
into a Log4j Level
.String
into a Long
.String
into a Pattern
.String
into a Provider
.String
into a Short
.String
, no conversion takes place.String
into a URI
.String
into a URL
.Type
s and derivatives.LoggerConfig
s
and Appender
s from the platform MBean server.
LoggerConfig
s
and Appender
s from the platform MBean server.
LogEvent
s from an InputStream
.event
elements as defined in the log4j.dtd.
|