Package org.apache.logging.log4j.core.util
Log4j 2 helper classes.
-
Interface Summary Interface Description AuthorizationProvider Interface to be implemented to add an Authorization header to an HTTP request.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.Cancellable Interface to cancel a Runnable callback.Clock Provides the time stamp used in log events.ContextDataProvider Source of context data to be added to each log event.FileWatcher Watches for changes in aFileand performs an action when the file is modified.NanoClock Provides the high-resolution time stamp used in log events.PasswordDecryptor Decrypt passwords.SecretKeyProvider Factory class to provide aSecretKeyinstance.ShutdownCallbackRegistry Registry used for Runnable shutdown callback instances.Watcher Watches for changes in a Source and performs an action when it is modified.WatchEventService -
Class Summary Class Description AbstractWatcher Watcher for configuration files.AbstractWatcher.ReconfigurationRunnable Helper class for triggering a reconfiguration in a background thread.ArrayUtils Copied from Apache Commons Lang (including the@sincetags.)Assert Utility class providing common validation logic.BasicAuthorizationProvider Provides the Basic Authorization header to a request.Booleans Boolean helpers.CachedClock Implementation of theClockinterface that tracks the time in a private long field that is updated by a background thread once every millisecond.ClockFactory Factory forClockobjects.Closer Closes resources.CloseShieldOutputStream A delegating OutputStream that does not close its delegate.CloseShieldWriter CoarseCachedClock This Clock implementation is similar to CachedClock.Constants Log4j Constants.CronExpression Provides a parser and evaluator for unix-like cron expressions.CyclicBuffer<T> A bounded buffer containing elements of type T.DefaultShutdownCallbackRegistry ShutdownRegistrationStrategy that simply usesRuntime.addShutdownHook(Thread).DefaultShutdownCallbackRegistry.RegisteredCancellable DummyNanoClock Implementation of theNanoClockinterface that always returns a fixed value.ExecutorServices FileUtils File utilities.Integers Helps deal with integers.IOUtils Copied from Apache Commons IO revision 1686747.JndiCloser Helper class for closing JNDI resources.JsonUtils This class is borrowed from Jackson.KeyValuePair Key/Value pair configuration item.KeyValuePair.Builder Loader Load resources (or images) from various sources.Log4jThread Prefixes thread names with"Log4j2-".Log4jThreadFactory CreatesLog4jThreads.NameUtil NetUtils Networking-related convenience methods.NullOutputStream Writes all data to the famous /dev/null.ObjectArrayIterator<E> AnIteratorover an array of objects.OptionConverter A convenience class to convert property values to specific types.Patterns Pattern strings used throughout Log4j.ReflectionUtil Utility class for performing common reflective operations.Source Represents the source for the logging configuration as an immutable object.StringBuilderWriter Writerimplementation that outputs to aStringBuilder.StringEncoder Encodes Strings to bytes.SystemClock Implementation of theClockinterface that returns the system time.SystemMillisClock Implementation of theClockinterface that returns the system time in millisecond granularity.SystemNanoClock Implementation of theNanoClockinterface that returns the system nano time.Throwables Helps with Throwable objects.Transform Utility class for transforming strings.TypeUtil Utility class for working with JavaTypes and derivatives.UuidUtil Generates a unique ID.WatcherFactory Creates Watchers of various types.WatchManager ManagesFileWatchers.WatchManager.LocalUUID WrappedFileWatcher -
Enum Summary Enum Description ExtensionLanguageMapping