Package org.apache.logging.log4j.core.util
@Export
@Version("2.24.1")
package org.apache.logging.log4j.core.util
Log4j 2 helper classes.
-
ClassDescriptionWatcher for configuration files.Helper class for triggering a reconfiguration in a background thread.Copied from Apache Commons Lang (including the
@since
tags.)Utility class providing common validation logic.Interface to be implemented to add an Authorization header to an HTTP request.Provides the Basic Authorization header to a request.Boolean helpers.Builder<T>A type of builder that can be used to configure and create a instances using a Java DSL instead of through a configuration file.Implementation of theClock
interface that tracks the time in a private long field that is updated by a background thread once every millisecond.Interface to cancel a Runnable callback.Provides the time stamp used in log events.Factory forClock
objects.Closes resources.A delegating OutputStream that does not close its delegate.This Clock implementation is similar to CachedClock.Log4j Constants.Source of context data to be added to each log event.Provides a parser and evaluator for unix-like cron expressions.CyclicBuffer<T>A bounded buffer containing elements of type T.ShutdownRegistrationStrategy that simply usesRuntime.addShutdownHook(Thread)
.Implementation of theNanoClock
interface that always returns a fixed value.File utilities.Watches for changes in aFile
and performs an action when the file is modified.Helps deal with integers.Copied from Apache Commons IO revision 1686747.Helper class for closing JNDI resources.This class is borrowed from Jackson.Key/Value pair configuration item.Load resources (or images) from various sources.Prefixes thread names with"Log4j2-"
.CreatesLog4jThread
s.Provides the high-resolution time stamp used in log events.Networking-related convenience methods.Writes all data to the famous /dev/null.AnIterator
over an array of objects.A convenience class to convert property values to specific types.Decrypt passwords.Pattern strings used throughout Log4j.Utility class for performing common reflective operations.Factory class to provide aSecretKey
instance.Registry used for Runnable shutdown callback instances.Represents the source for the logging configuration as an immutable object.Writer
implementation that outputs to aStringBuilder
.Encodes Strings to bytes.Implementation of theClock
interface that returns the system time.Implementation of theClock
interface that returns the system time in millisecond granularity.Implementation of theNanoClock
interface that returns the system nano time.Helps with Throwable objects.Utility class for transforming strings.Utility class for working with JavaType
s and derivatives.Generates a unique ID.Watches for changes in a Source and performs an action when it is modified.Creates Watchers of various types.ManagesFileWatcher
s.