Package org.apache.logging.log4j.util

Internal utility classes for the Log4j 2 API.

See: Description

  • Interface Summary 
    Interface Description
    BiConsumer<K,V>
    An operation that accepts two input arguments and returns no result.
    IndexedReadOnlyStringMap
    An extension of ReadOnlyStringMap that imposes a total ordering on its keys.
    IndexedStringMap
    An extension of StringMap that imposes a total ordering on its keys.
    MessageSupplier
    Classes implementing this interface know how to supply Messages.
    MultiFormatStringBuilderFormattable
    A Message that can render itself in more than one way.
    PropertySource
    A source for global configuration properties.
    ReadOnlyStringMap
    A read-only collection of String keys mapped to values of arbitrary type.
    StringBuilderFormattable
    Objects that implement this interface can be converted to text, ideally without allocating temporary objects.
    StringMap
    Exposes methods to add and remove key-value pairs to and from ReadOnlyStringMap.
    Supplier<T>
    Consider this class private. Classes implementing this interface know how to supply a value.
    TriConsumer<K,V,S>
    An operation that accepts three input arguments and returns no result.
  • Class Summary 
    Class Description
    Activator
    Consider this class private. OSGi bundle activator.
    Base64Util
    Base64 encodes Strings.
    Chars
    Consider this class private.
    Constants
    Log4j API Constants.
    EnglishEnums
    Consider this class private.
    EnvironmentPropertySource
    PropertySource implementation that uses environment variables as a source.
    FilteredObjectInputStream
    Extends ObjectInputStream to only allow some built-in Log4j classes and caller-specified classes to be deserialized.
    LambdaUtil
    Utility class for lambda support.
    LoaderUtil
    Consider this class private. Utility class for ClassLoaders.
    OsgiServiceLocator  
    ProcessIdUtil  
    PropertiesPropertySource
    PropertySource backed by a Properties instance.
    PropertiesUtil
    Consider this class private.
    PropertyFilePropertySource
    PropertySource backed by a properties file.
    PropertySource.Comparator
    Comparator for ordering PropertySource instances by priority.
    PropertySource.Util
    Utility methods useful for PropertySource implementations.
    ProviderActivator
    Utility class to register Log4j2 providers in an OSGI environment.
    ProviderUtil
    Consider this class private. Utility class for Log4j Providers.
    ServiceLoaderUtil
    This class should be considered internal.
    SortedArrayStringMap
    Consider this class private. Array-based implementation of the ReadOnlyStringMap interface.
    StackLocator
    Consider this class private. Provides various methods to determine the caller class.
    StackLocatorUtil
    Consider this class private. Provides various methods to determine the caller class.
    StringBuilders
    Consider this class private.
    Strings
    Consider this class private.
    SystemPropertiesPropertySource
    PropertySource backed by the current system properties.
    Timer
    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.
    Unbox
    Utility for preventing primitive parameter values from being auto-boxed.
  • Enum Summary 
    Enum Description
    Timer.Status  
  • Annotation Types Summary 
    Annotation Type Description
    PerformanceSensitive
    Indicates that a particular annotated construct was written with certain performance constraints in mind that should be considered when modifying or testing.

Package org.apache.logging.log4j.util Description

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.

Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.