Package org.apache.logging.log4j.core.util
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
@sincetags.)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 theClockinterface 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 forClockobjects.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 theNanoClockinterface that always returns a fixed value.File utilities.Watches for changes in aFileand 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-".CreatesLog4jThreads.Provides the high-resolution time stamp used in log events.Networking-related convenience methods.Writes all data to the famous /dev/null.AnIteratorover 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 aSecretKeyinstance.Registry used for Runnable shutdown callback instances.Represents the source for the logging configuration as an immutable object.Writerimplementation that outputs to aStringBuilder.Encodes Strings to bytes.Implementation of theClockinterface that returns the system time.Implementation of theClockinterface that returns the system time in millisecond granularity.Implementation of theNanoClockinterface that returns the system nano time.Helps with Throwable objects.Utility class for transforming strings.Utility class for working with JavaTypes 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.ManagesFileWatchers.