Package org.apache.logging.log4j.util
package org.apache.logging.log4j.util
Internal utility classes for the Log4j 2 API. Note that the use of any classes in this package is not supported.
There are no guarantees for binary or logical compatibility in this package.
-
ClassDescriptionBase64 encodes Strings.BiConsumer<K,
V> An operation that accepts two input arguments and returns no result.Consider this class private.Log4j API Constants.Consider this class private.PropertySource implementation that uses environment variables as a source.ExtendsObjectInputStream
to only allow some built-in Log4j classes and caller-specified classes to be deserialized.An extension ofReadOnlyStringMap
that imposes a total ordering on its keys.An extension ofStringMap
that imposes a total ordering on its keys.Utility class for lambda support.Consider this class private. Utility class for ClassLoaders.URL
andClassLoader
pair.PrintWriter-based logging utility for classes too low level to useStatusLogger
.Classes implementing this interface know how to supplyMessage
s.A Message that can render itself in more than one way.Indicates that a particular annotated construct was written with certain performance constraints in mind that should be considered when modifying or testing.Internal utility to share a fast implementation of#getCurrentStackTrace()
with the java 9 implementation ofStackLocator
.PropertySource backed by aProperties
instance.Consider this class private.Provides support for looking up global configuration properties via environment variables, property files, and system properties, in three variations:PropertySource backed by a properties file.A source for global configuration properties.Comparator for ordering PropertySource instances by priority.Utility methods useful for PropertySource implementations.Utility class to register Log4j2 providers in an OSGI environment.Consider this class private. Utility class for Log4jProvider
s.A read-only collection of String keys mapped to values of arbitrary type.This class should be considered internal.Consider this class private. Array-based implementation of theReadOnlyStringMap
interface.Consider this class private. Provides various methods to determine the caller class.Consider this class private. Provides various methods to determine the caller class.Objects that implement this interface can be converted to text, ideally without allocating temporary objects.Consider this class private.Exposes methods to add and remove key-value pairs to and fromReadOnlyStringMap
.Consider this class private.Supplier<T>Consider this class private. Classes implementing this interface know how to supply a value.PropertySource backed by the current system properties.Primarily used in unit tests, but can be used to track elapsed time for a request or portion of any other operation so long as all the timer methods are called on the same thread in which it was started.TriConsumer<K,V, S> An operation that accepts three input arguments and returns no result.Utility for preventing primitive parameter values from being auto-boxed.State implementation that only puts JDK classes in ThreadLocals, so this is safe to be used from web applications.