Class StatusLogger.Config

java.lang.Object
org.apache.logging.log4j.status.StatusLogger.Config
Enclosing class:
StatusLogger

public static final class StatusLogger.Config extends Object
Holder for user-provided StatusLogger configurations.
Since:
2.23.0
  • Constructor Details

    • Config

      public Config(boolean debugEnabled, int bufferCapacity, @Nullable DateTimeFormatter instantFormatter)
      Constructs an instance using the given properties. Users should not create new instances, but use getInstance() instead!
      Parameters:
      debugEnabled - the value of the "log4j2.debug" property
      bufferCapacity - the value of the "log4j2.status.entries" property
      instantFormatter - the value of the "log4j2.StatusLogger.dateFormat" property
  • Method Details

    • getInstance

      public static StatusLogger.Config getInstance()
      Gets the static instance.
      Returns:
      a singleton instance